Hello,
I have a string variable, to which I would like to assign numerical values. It has too many unique values to use encode, so I have used:
egen numerical_variable=group(string_variable), label
However, when I do this I get the error "too few quotes r(132)". Does anyone know how to get around this?
Thank you
Related Posts with egen, group, label - "r(132), too few quotes"
Generate a variable with string of column names meeting criteriaHello I would like to generate a variable that is a string combination of variable names meeting a s…
replacing values for specific casesHi there, I need to recode variables for specific cases: I have 2 obs for each individual (Case_ID=…
Centering output with outreg2 commandDear Statalisters, I am using the outreg2 command to display the output from my analyses. My quest…
Recoding variables for specific casesHi there, I need to recode variables for specific cases: I have 2 obs for each individual (Case_ID=…
Scatter plot with a categorical variableI have three categorical variables (capacity, times, prices). The capacity has three levels ( 4 cups…
Subscribe to:
Post Comments (Atom)
0 Response to egen, group, label - "r(132), too few quotes"
Post a Comment