Hello,
I'm having significant difficulty numbering observations. I've attached a screenshot for clarity. In this subset of data, many of the observations underneath the serial number variable are repeated. They are different individuals living under the same household. I'd like each individual in the household to be labeled 1, 2, 3, 4, etc., resuming at 1 for each subsequent serial number. I've been trying to come up with different variations for how to do this for a few hours, only to be met with error messages. If anyone knows a command to do this, I'd greatly appreciate it as I can't go through several million observations manually entering that data.
Thank you
Related Posts with Numbering Similar Observations
Change ID codes to a corresponding different ID codes in a panel datasetI have a dataset where the industries are identified with the NAIC codes. I want to change the NAIC …
A little help with summary statisticsHey everyone, Firstly happy Christmas to those who celebrate it and happy holidays too! Back to th…
New version of htmlutil on SSCThanks as always to Kit Baum, a new version of the htmlutil package is now available from SSC. In St…
New version of cprdhesutil on SSCThanks once again to Kit Baum, a new version of the cprdhesutil package is now downloadable from SSC…
how to multiply 100 times in bootstrappingHello Statalist, I am currently working on 2 stage bootstrapping command. I already compute 100 y h…
Subscribe to:
Post Comments (Atom)
0 Response to Numbering Similar Observations
Post a Comment