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
Geonear producing unstable resultsI'm trying to use geonear to identify the nearest neighbors within a dataset at the household-day le…
event study - eventstudy2I am a postgraduate student writing my thesis. I am somewhat a novice in the field I have chosen to …
Generating mean returns, based on xtile returnsHi comminuty, I seem to have problems with calculating mean returns (ret_sup in my data). My datase…
Age and GenderBonjour, First and foremost, I have to warn you that Im such a beginner on STATA & statistics o…
MisstableHello, Looking to do misstable summarize. I have a variable split into cases and controls. Then I h…
Subscribe to:
Post Comments (Atom)
0 Response to reshape for matching
Post a Comment