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
table issue againHey there, Having solved my last issue leads me directly to the next one.. My goal is to reshape th…
putexcel and multiple loopsI am using putexcel in tata 15.1. have an issue exporting results to Excel through multiple loops. T…
Conditioning on wide variablesHello, I created a wide dataset where 'm201509' to 'm201512' are binary variables indicating that t…
Reshape long then wide: use variable labels as new variable's (j) values, and with missing valuesHi All, I'm trying to reshape a dataset, and I'm having two problems that I can't solve. What I'm …
Adding too many variables to a regression modelAm I correct in thinking adding too many variables to a regression model can increase the likelihood…
Subscribe to:
Post Comments (Atom)
0 Response to Convert "string" ID to numeric with non-numeric characters
Post a Comment