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
Panel Data: Adding/Merging multiple rows with observations to the same dateHello Statalisters! I have a firm-day panel dataset with firms, dates and stock returns. It looks l…
Constraint Regressions with a loop and saving the parameters for every year.Hello everyone, I am trying to regress 15 separate dependent variables (Country Index returns) with…
How to find a level of independent variable which change( decrease) independent variable?Hello, everyone. I have multiple regression scorei = β0 + β1clsizei + β2el_pcti + β3comp_stui + β4a…
Graphing power curves given simulation resultsI recently ran some simulation analyses for a multi-level randomized control trial design in a separ…
generate summary stats for eststo with tertilesHi Statalisters, having a real struggle figuring this one hope - really hope someone can help! I a…
Subscribe to:
Post Comments (Atom)
0 Response to reshape wide to long, no existing j variable
Post a Comment