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
Related Posts with Problem with gen id = _n
How to calculate birth year effects?Dear friends, I hope to calculate the birthyear effects. My code is similar as below, Code: reg i…
Exporting Stata GraphI sent Stata graph as tiff to the editors of a journal but the insist they would like them in a Micr…
Interpretation of -estat vif- findingsHi. I am using stata 16.1. I estimate a dynamic panel data model using the commando -xtreg, fe vce(r…
Univariate Evidence using t-statHello Stata Community, i have the attached dataset and I want to give an descriptive statistics ove…
Some curious features of tests in Stata with interactionsWhile preparing teaching material for my undergrads I noticed a peculiar, not to say undesirable, fe…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with gen id = _n
Post a Comment