Hi all,
Everyone was really helpful on my last post. Currently, I have a dataset that has parents (hhidpn) and children (kidid). I've created a variable (seen below) named "kidcount" that tells me the number of unique children each hhidpn has. I now would like to create a variable that gives each child a child number. In the example, lines 10-16 would have kidnumber = 1 and lines 17-23 would have kidnumber = 2 and so on for each parent. Once a new parent (hhidpn) is reached in the dataset, kidnumer would reset. I am sure this is an easy question so I apologize in advance.
Array
Related Posts with How to create a child number indicator?
Fixed EffectIs there any difference in running multicollinearity, autocorrelation and heteroskedasticity test us…
update available of smclpres: module for making interactive presentations in StataThanks to Kit Baum a new version of smclpres is now available from SSC. To install type in Stata ssc…
Coding the variablesDear all I am working with crop productivity data from Bangladesh and there are multiple variables …
twoway area and unwanted outlineI use twoway area to draw chronograms, and like to suppress the outline of the area, using fill-colo…
The spatial lag command does not generate the variableHi all, I am using the HTML Code: spmon command to generate the spatial lag term. However, I am …
Subscribe to:
Post Comments (Atom)
0 Response to How to create a child number indicator?
Post a Comment