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
Curve fitting to a scatter plotDear all, Is there a way in Stata to fit a curve to specify the frontier value for every GDP per ca…
Alternative Method Experiment For Two Way Fixed Panel RegressionDear Experts on Panel Data Econometric and Stata Program, I will use two way fixed effect panel regr…
Stata unicode issue - imported Japanese characters are scrambledHello: I'm using Mac Sierra (10.12.5) and Stata 15.0. I have a lot of csv files that I need to impo…
quarterly data--calculate the standard deviation of quarterly data over the past four yearsGood morning, I am currently working with the quarterly return data and want to calculate the stand…
histogram over age groups?Dear All, I find this question here. The data set is: Code: * Example generated by -dataex-. To in…
Subscribe to:
Post Comments (Atom)
0 Response to create individual identifiers numbered from 0 upwards
Post a Comment