Hello,
I am fairly new to Stata and am having trouble even starting on this problem. I am working with the National Longitudinal Survey of Youth 1997 from the Bureau of Labor Statistics dataset. I am having some trouble with the household roster section. Individuals who belong to a household are recorded each year and given an identifying number (i.e. 1 for mother, 2 for father, 3 for sister, etc.). I was interested in isolating the siblings. Doing this, though, has left me with many missing values and sibling variables that go up to 40 because the number of household members changes from year to year.
I found some code on another forum that does this.
https://stackoverflow.com/questions/...tions-in-stata
However, the code here changes my numbers from 13-26 to 1-8. Additionally, it increased the number of variables I had. Originally, I had 30 sibling in 1997 and after running the code I had 37. How do I fix the code so these do not happen?
Related Posts with Shifting observations across rows
How to put stars instead of pvalues in output of esttab from a non estimation commandHello, I want to have a nice LaTeX table with some statistical information about some variables of …
How to do bootstrap test for a nonlinear mediation effect with a moderator and fixed effectsHi Statalist, I have a problem about how to use bootstrap test to further detect a mediation proces…
Proportional redistributionI have a dataset with a variable sex (male, female, unknown), I want to create a new variable that w…
placebo test of SCMin the article''Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of Cal…
putexcel column names when not all possible columns have valuesI am trying to create several descriptive tables, using putexcel. I am struggling to get a working m…
Subscribe to:
Post Comments (Atom)
0 Response to Shifting observations across rows
Post a Comment