Hi,
I need to create a new variable "ID" from a existing variable "Value", i have been trying with
. egen id = group(value)
but the new variable ID contain 1 for the first value, 2 for the second value, and so on. I need same resoults BUT numbered from 0 upwards.
"Value" is numeric
Thanks,
Related Posts with create individual identifiers numbered from 0 upwards
GOF of Logit Model: Pearson's chi2, Hosmer and Lemeshow's testHi everyone, I am using a logit model (attached below) to investigate the impact of minority status…
mutiple graphs in single graphHi, Does anyone knows how to make side by side bar graphs in a single graph? I did the following cod…
Interpretation of 198% mediation effectHey everyone, I run an insignificant direkt effect of my X and Y variable but I want to test for a …
Graph bar with a grading palette of colorsHi there, I am trying to picture a bar graph. However, instead of randomly selected colours I would…
Stacked First-Differences Model including IV and Fixed-EffectsHello all, I have panel data on 16 countries for the years 1995 to 2007 (yearly observations). Init…
Subscribe to:
Post Comments (Atom)
0 Response to create individual identifiers numbered from 0 upwards
Post a Comment