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
convert northing and easting to longtitude and latitudeHi, is there a code for converting "northing" and "easting" to longitude and latitude? Many thanks! …
Graph panel dataHi all, My name is Thomas Leirvik, and have a few questions about plotting using Stata (sorry for m…
Looking for methological adviceHi everyone, I'm looking for methodological advice on the undertaking described below. I tried to s…
Two Step Binary Choice Regression Model: What type of regression model to use to avoid sample selection bias and autocorrelation?Hi, I have a two step-model (see below) in which all the people answer the question in the first par…
Drop observation if missing in two discontinous yearsHello, I have a lot of balance sheet data (with a lot of variables). What I need is for every idnr …
Subscribe to:
Post Comments (Atom)
0 Response to Too many observations for gen id = _n
Post a Comment