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
predicted values from repeat regression model differentHello, I ran a OLS regression model with 59,000,000 observations and 1000+ plus variables. When I …
drop observationspost should be deleted …
drop observationsHello everyone, I want to drop the following observations: If a person has written several articles…
What is the difference between" i.county|trend " and " i.county##c.trend "?In the process of learning the code, I found this way of writing: "i.county|trend" (county is the co…
Trend graphs for repeated cross-sectional dataHi, I'm a student and I'm working with a repeated cross-sectional dataset. I would like to create so…
Subscribe to:
Post Comments (Atom)
0 Response to Numbering Similar Observations
Post a Comment