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
Marginal effects in Stochastic Frontier AnalysisDear all: I am estimating a panel data SFA using the model proposed by Battese and Coelli (1995). I …
Averaging observations within a column having missing valuesHello there ! I am hoping to get a reply for this since I am struggling with it for quite some time …
ordered logit sorted by a binary variable including weightsi am trying to run an ordered logit model with wealth status (categorical) as dependent variable plu…
Moving average between missing variablesHi. I have monitoring data which were collected every three hours, as shown below. I am trying to fi…
Heterogeneous treatment effects with ivregressDear Statalist, I want to calculate treatment heterogeneity in a two-stage-least-square (TSLS) sett…
Subscribe to:
Post Comments (Atom)
0 Response to reshape for matching
Post a Comment