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
power analysis with clustered data - simulated vs calculatedI want to estimate my statistical power for two groups with clustered data. When I use the power com…
Conditional logit model when there are multiple choices and independent variable only varies across choicesHi, I have a dataset with COVID-19 mortality rates categorized by occupation and industry, consisti…
Simple regressionHi all, I want to look at which sectors have a siginificant impact on total trade between two count…
Add space for coefficient plots for two groups so that it is easier to tell them apartHi all, Assume that you have the following Stata code that generates coefficient plots based on two…
Panel data questionDear, For my master thesis, I need to do a regression to analyse the effects of climate change on t…
Subscribe to:
Post Comments (Atom)
0 Response to Numbering Similar Observations
Post a Comment