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"
Multiple line -if- conditional on variableI have (quite stupidly) have code of this type if market=="a" { replace o=1 replace e=1 replace sta…
Latent profile model. Inconsistent mean valueDear Stata users, I am running a latent profile model using the data of a questionnaire addressed to…
Difference in Difference Analysis with Panel Data via REGHDFE, missing significance.Hello everyone, I am currently writing my Master Thesis and I try to explore the effect of leaving …
How to create graphHello, I was wondering if anyone could tell me how to create a graph that's similar to this one. I …
Rolling window Spearman correlationDear Stata Users, I want to generate a 5 year (min 3 years) rolling Spearman correlation. I have co…
Subscribe to:
Post Comments (Atom)
0 Response to egen, group, label - "r(132), too few quotes"
Post a Comment