Hello
I am using the South African NIDS (National Income Dynamic Survey) wave 1 to wave 5. I have successfully merged the waves to create a panel dataset.
I am trying to create a variable that identifies the order of birth between siblings within the household.
I have successfully created a variable that sums the total number of children in the household, but my stata knowledge is insufficient in creating a variable for ranking the children according to age. I do understand that it would require the 'egen: rank' command.
The desired result is a variable that could label the eldest, youngest etc.
I only have a variables for hhid, pid, date of birth, relation to the household head.
Could anyone help in creating such a variable?
Thank you
Sophie Gebers
Related Posts with generate variable: birth order of children (ages 0 to 17) in household
Graph for parallel trendDear Stata users, Using a panel data collected during the years 2011, 2013, and 2015, I am trying t…
Interpreting sureg resultDear all, can you show me how to interpret this sureg result? Esp for d##c thank you in advance sur…
New package on SSC archive: icalc - a toolkit for interperting and reporint interaction effects in generlaized linear modelsWith gratitude to Kit Baum for keeping up the SSC archive, I am pleased to announce the release of t…
Pearson Residuals (fe regression)Hi - I have a simple model where I am trying to understand the impact of a firm's geographical dive…
Frequency distribution, what's missing? (beginner question)Beginner trying to learn Stata. I am assigned to construct a relative frequency table based on place…
Subscribe to:
Post Comments (Atom)
0 Response to generate variable: birth order of children (ages 0 to 17) in household
Post a Comment