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
VAR Model Lag Length Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(Dlrgdp Dlo…
re-transformation of logged DV give ridiculous valueDear All, I have a quick question. I am not sure what I did wrong here. After I run ivregress 2sls,…
generate separate group variables instead of categorical variable. Need your help!Hi everyone, I have a logistic model to test the effect of different individual characteristics on …
Saving multiple file names in one .txt or .dat Dear all, I would like to run Monte Carlo simulation in Mplus using 100 data generated from Stata. …
Delimit Propensity Score to obtain a better matchingHello, I have a general doubt about PSM. The analyses of the graph (using teffects psmatch) are muc…
Subscribe to:
Post Comments (Atom)
0 Response to Convert "string" ID to numeric with non-numeric characters
Post a Comment