I need an urgent help pleeeeease. I am going to do matching comparison between intervened group ( in follow up period, then I want to separate results in time=1) and matched control group. then I am going to do reshape, but I get this error, is it because of missed data or repetitive not unique data?
my data is 70mys mexico pension program. if you need more details please let me know.
reshape wide spending_dec age employment expenditure hh_exp childs_live married_years newchilds newadults newolder
> _adults gds, i(newfolio) j(time)
(note: j = 0 1)
values of variable time not unique within newfolio
Your data are currently long. You are performing a reshape wide. You specified i(newfolio) and j(time).
There are observations within i(newfolio) with the same value of j(time). In the long data, variables i() and
j() together must uniquely identify the observations.
long wide
+---------------+ +------------------+
| i j a b | | i a1 a2 b1 b2 |
|---------------| <--- reshape ---> |------------------|
| 1 1 1 2 | | 1 1 3 2 4 |
| 1 2 3 4 | | 2 5 7 6 8 |
| 2 1 5 6 | +------------------+
| 2 2 7 8 |
+---------------+
Type reshape error for a list of the problem variables.
r(9);
.
Related Posts with reshape for matching
Addtions of observations with conditionsHello everybody, I have a big dataset to manage and I'd like to reduce it. To do so, I want to add …
Odds ratios and Interaction effects InterpretationHi All, I have having some trouble interpreting some interaction effects of some panel data ordinal…
-moremata- update: improved entropy balancing algorithmAn update to the moremata package is now available from SSC. Type Code: . ssc install moremata, re…
regression loop !Dear Colleagues I have daily stock returns and market return for 100 firms and for a number of year…
New program -ineqdecgini- (Gini coefficient and its subgroup decomposition) now available on SSC-ineq …
Subscribe to:
Post Comments (Atom)
0 Response to reshape for matching
Post a Comment