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
An error "plugin not loaded or not available: use the adoonly option" accur after "ml maximize"I am trying to learn how to use mdraws by Cappellari and Jenkins.When replicating the example test_t…
Error r(43) convergence not achieved. CFA, SEM, estat gofHi, I have a dataset with 12 ordinal variables of 4 categories. I use SEM command to perform CFA and…
Time-varying Covariate with Competing RisksHello, I have to study the relationship between a drug exposure and outcomes, adjusting for other c…
Asdoc error in tabulation with Freq=1Hi all, I am having problems with asdoc when exist frequency=1, I know that its a naive question bu…
Matching components of string variablesI have data from a trial where a patient answers a set of questions in the sequence q12, q14, q16 an…
Subscribe to:
Post Comments (Atom)
0 Response to reshape for matching
Post a Comment