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
Using xtivreg2 with clusterDear Statalisters, I am conducting an econometric research on energy economics. I am using xtivreg2 …
Fixing X-axis on dotplotHi, I am having some trouble with the X-axis on my dot plot. The Y-axis is the different patients …
Interpretation of triple DDD results and margins commandsI'm trying to test and interpret the triple DDD results, but I'm not so sure whether I'm doing it co…
Output OLS RegressionHello everyone. For my thesis I have to run a OLS regression estimated cross-sectionally by industr…
Creating new VCE matrixHello, I am runnning the following model Code: sem(M<-T C1 C2 C3)(Y<- T M C1 C2 C3) and I g…
Subscribe to:
Post Comments (Atom)
0 Response to Count number of alive children within household
Post a Comment