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
Matching with replacement based on size and industryHi, I am currently doing my thesis and I am struggling with this problem. I have a panel dataset i…
lead (t+1) variablesDearest All I am confronting an issue I have a dataset which consists of 10574 observations panning…
Annualize monthly returnsDear Statalist users, I would like to annualize monthly returns on funds by using the following for…
Three way interaction without significant two way interaction?Hello, Does anyone know if it is legitimate to proceed with threeway interactions when the two-way …
Exporting a file with a list of variable names and variable labels.Hi all, I've been trying to export a file (Excel or anything) with two columns - first with a list o…
Subscribe to:
Post Comments (Atom)
0 Response to Keep only children and disregard adult children which start their own family
Post a Comment