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
Test for the need of squared variable specification in fixed effects model?Hello everybody, I'm running a fixed effects model on panel data and would like to test if I need t…
excel file too big.Dear All, I tried to import many excel files but encountered the following error message. Any sugges…
JSON from a variable?Hi, I have quite a bit of JSON-formatted strings stored in a csv, such as the following: Code: {"…
Iteratively intersecting global and local listsIn my analysis, I am using district-month panel data. I want to do the following many times: (1) sel…
Using Label define for a variable with many observationsHello all, I am seeking help with the following. I have a dataset that is of population projections…
Subscribe to:
Post Comments (Atom)
0 Response to Shifting observations across rows
Post a Comment