Thursday, September 1, 2022

Problem with gen id = _n

Dear All,

I have a dataset with 52,145,974 observations and 93 variables. I want to create a unique id, so I executed the following command.

gen id = _n

However, this did not work. the generated variable id did not identify the observations uniquely.

Shoummo

No comments:

Post a Comment