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
Why we need to use fixed effect for binary variable?When trying to explain the interaction variable explanation, I saw this link. In this link, I saw a …
How do I use XTSET in panel data?Hello, I want to assess the impact of migration on the trade. So I have trade data between one dest…
Invalid matrix operation - polychoric correlationHello! I have census data for households in several countries. I would like to estimate assortative…
confused about restructuring data: reshaping? stacking? something else?Hi, I am using Stata 16.1 on Windows 10. I have attached two datasets: (1) a simple example of the s…
How to replace missing day/month with a "generic" date (i.e. 01jan) for a string date variableHello, I am working with a string variable called "YearofBirth" that includes includes 443 observati…
Subscribe to:
Post Comments (Atom)
0 Response to Count number of alive children within household
Post a Comment