Hello,
I wonder if anyone could help with the following:
I have 2 variables with unique identification (ID) numbers with over 30 years of follow-up time. One is ID numbers for children and the second is the ID numbers of their mothers.
Example:
ChildID:-------------MotherID:
10---------------------------20
11---------------------------21
12---------------------------10
13---------------------------22
I want to identify children who are now also mothers in the dataset. For example Child ID10 above is now also a mother. Is there a way I can create a variable to identify which children subsequently became mothers based on their ID numbers?
Thank you,
Gillian
Related Posts with Identify observations in >1 variable
ciplot using listwise deletionDear Stata users,
I am using Stata/IC 16.1. I have 4 binary variables (Yes=1 No=0). I want to plot …
How to compare countries in panel data regression?Hi everyone
I am comparing variables for 3 countries over 20 years and I would like to have a coeff…
How to randomly sampling and regression, and save the output 500 times, and draw kdensity of 500 coeffients?for example, I have a sample of 2000 students from 50 schools.
I want to randomly drop 2 schools an…
Reformatting datasetHello Statalists,
I'm new to Statalist, I've read the forum guidance and tried to follow but please…
Get rid of the space after the leading quote?Hi all,
Please see the graph below and the example codes. In the 'note' option in my codes, I have …
Subscribe to:
Post Comments (Atom)
0 Response to Identify observations in >1 variable
Post a Comment