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
Generating a Variable Conditional on Many Variable that are not Dummy VariablesHi everyone, I have this dataset that contains information on the relationship of each household mem…
error ) required r(100);Dear all, The code below gives me the error Code: ) required ; Code: twoway (line RM_RF Year), yt…
Map with labels for only a select countriesHi, I would like to be able to draw a map while labelling only a few countries. I have implemented t…
Merging two variables from different datasetsDear all, I am working with a large dataset of nearly 3 million observations on house prices in the…
How can I transform the data structure?Dear all, How can i transform the data structure below Code: * Example generated by -dataex-. For m…
Subscribe to:
Post Comments (Atom)
0 Response to create individual identifiers numbered from 0 upwards
Post a Comment