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
Estimating confidence intervals of the cumulative structural impulse–response functionsHello, I have estimated csirf following the instructions from this post: https://blog.stata.com/201…
summing up total number of eventsIn a prospective study with 336 patients, I have a variable "number_of_events_since_operation". It c…
variable Omitted due to collinearityHi, I am facing the similar problem of collinearity among independent variables but my model contain…
Summary stats for panel dataI have the following dataset from years 2000-2010. Code: * Example generated by -dataex-. To insta…
-groups- by functionHello I want to list the "top 10" causes of death by age group. The -groups- command works nicely f…
Subscribe to:
Post Comments (Atom)
0 Response to generate variable: birth order of children (ages 0 to 17) in household
Post a Comment