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
Plotting Matrix as pdf with two values in each cell and coloring with respect to both valuesHello, I'm trying to plot a matrix as a pdf file. There are two things in particular I would like t…
regression by industry and yearHi members, I am trying to run a regression by industry and year. I used the following code but I g…
Using strpos to generate a new variable conditional on the last digit of another stringDear Statalisters, I'm struggling with Stata in handling a string problem. I have a dataset of indu…
Adding values in estpost/esttabHi, i'm using estpost and esttab to export variables summarizes. I would like to get Count/750 for e…
Robust standard errors for Panel Count DataHi Statalisters, I have panel count data and it appears to me that it has rather a negative binomia…
Subscribe to:
Post Comments (Atom)
0 Response to Numbering Similar Observations
Post a Comment