Hello STATALIST community,
I am a desperate student at the University of Konstanz in Germany and I am currently writing my master thesis. I hope to get some help this way. Unfortunately, I am not that familiar with Stata.
As you can see in the picture, persons can either be a child or a father (=head). I have given a household identifier (hid), person identifier (pid), survey year (syear) and the relationship to household head (d11105) as variables. It can happen that a child later has his own household and becomes a household head.
I would like to keep only those individuals/children (+ keep their fathers) in which they first appeared as a child and disregard those adult children which create their own family later.
I tried to find a solution on the Internet, but did not find any. I am very grateful if you can help me. I am sure there is a simple solution, but I know too little about STATA.
Best regards from Germany
Related Posts with Keep only children and disregard adult children which start their own family
Using Matrix commandDear Users, I have two freq tables as follows: Table 1 Code: pml | Freq. Per…
cox proportional hazard model with log-transformed variablesHi, I ran a cox proportional hazard model to predict cumulative baseline hazard and xbeta. My code …
Matching options using psmatch2Hi, I am performing propensity score matching using the "psmatch2" command (and, in particular, usi…
Query about r(5); errorI am following certain accounting models to estimate measures of financial reporting quality. I have…
Creating 'household income per capita' variableDear all I am using the South African National Income Dynamics Survey (NIDs) and have successively …
Subscribe to:
Post Comments (Atom)
0 Response to Keep only children and disregard adult children which start their own family
Post a Comment