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
Three way interaction without significant two way interaction?Hello, Does anyone know if it is legitimate to proceed with threeway interactions when the two-way …
Exporting a file with a list of variable names and variable labels.Hi all, I've been trying to export a file (Excel or anything) with two columns - first with a list o…
Annualize monthly returnsDear Statalist users, I would like to annualize monthly returns on funds by using the following for…
lead (t+1) variablesDearest All I am confronting an issue I have a dataset which consists of 10574 observations panning…
Generate random data with mean, std and rangeSo my professor is asking us to produce some data from a experimental paper to do power analysis. So…
Subscribe to:
Post Comments (Atom)
0 Response to Convert "string" ID to numeric with non-numeric characters
Post a Comment