Hi All,
I am working with a smaller dataset of approximately 500 observations in Stata 15.1. I am interested in the relationship between parent's and child's education and am stuck on what should be a relatively simpler part of the analysis. In this dataset, children are identified by a combination of the parent's id (numerical) and the child's id (which is the #of children each parent has, from 0-7). I would like to determine how many kids have parents who graduated from college and while I already created a new categorical variable for parent's education, I can't figure out how to connect that information to each of the parent's kids. If anyone could suggest a way of identifying which parents the kids belong to, I can figure out the rest. Any suggestions are greatly appreciated!!!
tab child_id
child_id Freq. Percen tCum.
1 212 50.84 50.84
2 117 28.06 78.90
3 50 11.99 90.89
4 23 5.52 96.40
5 10 2.40 98.80
6 3 0.72 99.52
7 2 0.48 100.00
Total 417 100.00
Parent's ID is reported as 1, 2, 3, 4, 5......
Paternal Education is reported as Elementary, Jr. High, H.S. Diploma, College, and More than College
Related Posts with Help with connecting variables based on id #'s
generating new variable that incorporates population weightsHi, I have panel data with country-year unit of analysis for 100 countries and 100 years. I have thr…
How to compute Wald estimator for IV like thisDear all, I would like to compute Wald estimator to examine the plausibility of instrumental variab…
Manually demeaning of variables of Panel data for all farms and run a linear regression for a particular extreme weather event.I have a panel data of monthly milk yield as a dependent variable and extreme weather ( in terms of …
error in copying table from stata to excelArray ----------------------- copy starting from the next line ----------------------- Code: * Exam…
foreach rename loop keeps stopping after one loop due to variable no longer in varlistI am writing a foreach loop to iterate over each variable, use its label as the new variable name, a…
Subscribe to:
Post Comments (Atom)
0 Response to Help with connecting variables based on id #'s
Post a Comment