I am trying to convert a non-numeric string ID variable to a numeric variable but I get an error message
"too many values". after I use: encode id, gen(copy_id)
My dataset has >75,000 and I understand this may be part of the problem. Please help because I cant do subsequent analysis if this ID variable is not converted to a numeric variable. I have more than 10 datasets to merge on this ID. I cant extract the data using dataex because I am working in a secure environment where I cant copy the data except as an image below.
Example ID's are shown below.
Array
Thanks.
Related Posts with Convert "string" ID to numeric with non-numeric characters
Counting unique idsWhen I use the following code: Code: bys month: count(refer_id) Is there anything I can add to it …
Pooling Data in Longitudinal/Cross-Sectional SurveyHello everyone; I am working with the National Longitudinal Survey of Children and Youth (NLSCY); a…
How to merge two datasets and How to use keepHello everyone! I'm a very beginner using STATA so please I'd like to get some help with merge comm…
variable distribution respect othersDear all, it is the first time to me in statalist. I would ask you if aanyone of you can help me wit…
Graphing averages using collapse mean and loops with same suffixHello, I am trying to graph cross-country distributions along with international averages using loo…
Subscribe to:
Post Comments (Atom)
0 Response to Convert "string" ID to numeric with non-numeric characters
Post a Comment