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"
change label in y-axis/x-axis?Dear All, I have the following code (please ssc install coefplot) and graph: Code: webuse grunfeld,…
Adding quantity of particular product from all importers and one particular exporterDear all, I have a dataset with information about products (numeric), their quantity, the importer …
A few questions about STATA difference in difference using data from multiple time periodsDear all, I want to see the influence of a housing policy on housing prices in two regions, one was…
Regression discontinuity of binary outcomes with rdplot/rdrobust/rdbwselect and/or rd*Hi I’m using Stata/SE 15.1 and am able to run all example do files included in the rdplot/rdrobust/r…
Finding values that are two standard deviations above the meanI need to find values of a variable that are two standard devotions above the mean. I want to create…
Subscribe to:
Post Comments (Atom)
0 Response to egen, group, label - "r(132), too few quotes"
Post a Comment