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
A doubt regarding duplicate identifier in a panel data setDear Members I have some doubts which I will illustrate with a sample dataset Code: * Example g…
Parallel trend plotDear Statalisters, I am conducting a difference-in-difference analysis with my bank level data with…
Ardl utestHello Statalisters! I am trying to use the Utest command to validate the existence of U-shaped rela…
Panel data with three dimensionsHi! I am working on a project to estimate price elasticity. My data set is aggregated on product - …
Does anyone know how to convert different time zones by state into one time zone? City (Origin) State (Origin) City (Destination) State (Destination) Departure Time Arrival time …
Subscribe to:
Post Comments (Atom)
0 Response to generate variable: birth order of children (ages 0 to 17) in household
Post a Comment