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?
Quadratic moments condition in GMMHi all, I am trying to evaluate a framework which requires me to input a quadratic GMM condition. I…
Stata 17 Bookmarks Not Working and No Navigation ControlAfter creating bookmarks in Stata 17.0, I am not provided a Navigation Control by which I can naviga…
Short Deadline: Help with xtreg regressionHello, I am facing a problem with my panel data which has "loans disbursed" as a panel variable and…
Plotting using survey weightsI have responses of survey on students and the data needed to be weighted based on the faculty of th…
How to count how many years of data each company has?Hello, I have a dataset that contains several executive's compensation infromation for each company.…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a child number indicator?
Post a Comment