I am trying to compare different variables for different observations within a group - and I am not sure if this is even possible in Stata.
I would like to count the number of alive siblings alive at age 5 (or alternatively the age of the death) of the observed child.
From the data, I have been able to generate the first four columns, but need to construct a column along the lines of column 5 here.
HH Child Age at Survey Age at Death Number of siblings alive at age 5(/at age of death)
1 1 18 4 1
1 2 15 - 1
1 3 11 - 2
1 4 8 - 2
2 1 4
...
Can anyone help?
Related Posts with Count number of alive children within household
MLE estimation from a given likelihood functionHi all, I am a beginner when it comes to MLE estimation using STATA. Suppose my observations are Xi…
How to perform multiple interpolation for missing values Code: * Example generated by - dataex-. For more info, type help dataex clear input float(a b c d g…
Complicated coding - female/male friends - same sex or mixed-sexDear members, I am struggling with a complicated coding. I have female_friends and male_friends. Ea…
Combining multiple Excel files with <xls2dta> commandI am using the xls2dta command to combine multiple Excel files, which seems like a nifty, parsimonio…
lnGSDP (the squared values of the variable GSDP) dropped due to collinearity. What to do to avoid this situationxtabond2 lnSWG lnGSDP lnGSDP_SQ SWG_L1 Health_Exp TotExp_ULB Urban_rate lnPopdens Pol_Stability HDI …
Subscribe to:
Post Comments (Atom)
0 Response to Count number of alive children within household
Post a Comment