Dear All,
I am dealing with DHS-Turkey dataset. The form of the data is wide. Each case id represents a unique mother. For example, first mother (case id 010420 02) has 1 child but 6th mother (case id361813 02) has 2 children. The data is cross sectional and each variable is recorded in 2013.
I want to sort my data in the long form. That is, i want children variables to be sorted vertically having the same id number of their mother. I could not do this because i do not have "j" variable which is subovervation identifier.
How can i do this?
Thank you so much.. Array
Related Posts with reshape wide to long, no existing j variable
Stata Export over EXCEL's row limitHi All, 1,048,576 is the max row limit for excel. So if you have STATA data over this limit and wan…
FMM errorI have the following estimation command using fmm: > fmm 3: regress $Y $T $X where $Y $X and $T…
Create a new variable with random probability and with probabilityI have to create 2 variables the first one is a random variable (e1) between 1-17 the second is a v…
Oaxaca & diff-in-diff advice (OLS assumtions)Hello, I am doing an oaxaca decomposition of the ethnic pay gap and then doing a diff-in-diff analy…
Significant variable in panel regression but not in regression year by yearDear Stata users, I need your point of view about this subject. I run a xtlogit regression with the …
Subscribe to:
Post Comments (Atom)
0 Response to reshape wide to long, no existing j variable
Post a Comment