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
Error lclogitmlHello I am trying to run the lclogit command (from Pacifico, Daniele and Yoo, Hong Il, lclogit: A S…
Standardized Beta CoefficientHaving run my linear regression analysis that contains two independent variables and one dependent v…
Lasso: Fitting mixed-effects logit modelsHi, I haven't been able to find a reference for doing this in Stata, but was wondering if anyone ha…
How do you generate a categorical variable which takes on values 0 and 1 in 60% and 40% observations respectively?The problem is that the output always shows a little or above it. For example, there are 10000 obser…
Month-wise regressions using daily dataDear Stata comunity, I need to run month-wise fama and french three factor model regressions using …
Subscribe to:
Post Comments (Atom)
0 Response to create individual identifiers numbered from 0 upwards
Post a Comment