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
Excluding certain items/variables from queryHello, I have a big dataset and I am trying to analyse children with all congenital heart diseases(C…
Converting monthly data into quarterly for a panel with multiple variablesHi all, I am working with a panel dataset which contains the following variables: wage bin (define…
Country specific time trends with first-differenced regressionDear all, I am running a first-differences regression and was wondering if country specific time tr…
How Poisson pseudo-maximum Likelihood deals with overdispersion.Dear forum, My question is more theoretical, but I hope I can find an answer here. I am running a …
Readying My Data for Panelwise AnalysisHello Statalist, I have been working on a dataset in Stata for the past month or so, but have recen…
Subscribe to:
Post Comments (Atom)
0 Response to Shifting observations across rows
Post a Comment