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
treated group with if conditionHello everyone, I am relatively new to Stata and I am trying to create a dummy variable to identify …
Creating a New Variable from a Dummy VariableI want to create a variable which counts the total number of people on a company board per year. The…
Multinomial logistic regression with Panel DataSuppose you have panel data (many observations for each person) and you have a discrete ordered outc…
Efficient way to calculate maximum number of observations before and after a specific value in a columnHi, I am using STATA version 16 and would need some help in counting the maximum number of observat…
Finding the right Instrument VariablesHi, i am examining relation between firm performance and instiutional ownership. I am now strugglin…
Subscribe to:
Post Comments (Atom)
0 Response to Convert "string" ID to numeric with non-numeric characters
Post a Comment