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
How to create a variable that replaces the current observation's value with the last value based on variying criteriaDear all, I am working with a dataset about economic activities in Brazil such as the one below (go…
Returned listConsider this simple example: Code: . return list scalars: r(changed) = 1 …
marginalized zero inflated modeling using STATAI have STATA 14 and I was informed that if I purchase STATA 16 I can now do marginalized zero inflat…
Comparing means across multiple groups using svy commandsI am looking to test for differences in means between three groups. Normally I would just run a onew…
Conditional logit with a different number of alternatives for each case?Dear all, I have a simple question. I am using cmclogit for a model of firm location (county) choic…
Subscribe to:
Post Comments (Atom)
0 Response to Convert "string" ID to numeric with non-numeric characters
Post a Comment