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
Variances and Covariances in the panel dataHi everyone, I just started using STATA and I am wondering how can I compute covariances and varianc…
how to fill in missing values of age by individualsHi all, Here is an example: individual value 1 . 1 21 2 51 2 . 2 . 3 . 3 15 3 . How can we fill i…
Missing values generated by lagged varDear All, I am using panel data for the universities for 5 years, 2012-2016. I have created a lagge…
Displaying sigma_u and rho for xtologit using esttabHello there, The standard esttab command does not include an option to display the value, standard …
OT: Analyzing ordinal data with metric modelsRonán Conroy alerted me to this article in another discussion forum. Some members of this group may …
Subscribe to:
Post Comments (Atom)
0 Response to Numbering Similar Observations
Post a Comment