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?
X11 Forwarding only showing half screen with StataI am using PuTTY to do SSH tunneling and X11 Forwarding with an Amazon EC2 Ubuntu instance. Multiple…
Saving WTP estimates to conduct Poe TestDear all I have run a clogit model and have estimated wtp via wtp, krisnky command. I now want to s…
BootstrapHi everyone, I need some help with understanding why STATA doesn't let me use the command: bootstra…
xtivreg2 - identifying singleton observationsDear All, I have a panel dataset with 18,071 observations. I am estimating the following model in …
Formatting and managing dates, from String to MMYYYY formatDear All, I am a new user in Stata. I am having a basic question and would kindly ask for your help.…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a child number indicator?
Post a Comment