I am using a very large dataset and this technique for generating a unique id for each observation doesn't work because _n caps out somewhere in the +e8 range. Is there a quick and easy alternative or a way to correct this?
Thanks.
Related Posts with Too many observations for gen id = _n
Marge to dataDear Sir, I am trying to marge two data in Stata 14, individual with household data based on househo…
Replacing missing values with median (PANEL DATA)Hi, Statalist. I'm working on panel dataset where I want to replace the missing values in my column…
Weighting in Stata when weight variable accounts for both sample-based and population-based corrections?Hello, I am using National Survey Data (specifically, UK LCF) for Regression Analysis that contains…
Expand each observation based on age in monthsDear Stata Users, I am dealing with a DHS data set. Here is what it looks like: ID number Age In…
Correlation between dummy and continuous variablesHello everyone, I have panel data with countries and daily data on covid-19 outcomes at the country…
Subscribe to:
Post Comments (Atom)
0 Response to Too many observations for gen id = _n
Post a Comment