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
Taking yearly average in panel data.Hello, I am working on a balanced panel data set whose example is shown below. I want to take yearl…
P trend valueHello, I'm trying to calculate the P trend value for an event risk according to the different disea…
Stata- margins and rifreg commandHi, We have a problem with margins after rifreg command: it works without writting xi in front of ri…
Does data on a time series need to be balanced like panel data?Does data on a time series need to be balanced like panel data? …
non parametric test with two variables?Dear all, I have a dataset containing 157 firms identified by a companyid variable, besides i have t…
Subscribe to:
Post Comments (Atom)
0 Response to Count number of alive children within household
Post a Comment