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"
How to use percentile data and raw data?Hi everyone I have a question for you? The model I use has both percentage variables and raw data. A…
Adjusting variables with Nelson-Aalen cumulative hazard functionDear all! I am struggling with the survivor function of the Nelson-Aalen cumulative hazard function…
how to get foreach of varlist v1-v10 take every second variable from the specified set (v1 v3 v5...)?Hi dear Statalisters, I was wondering if there is any way to get Stata to pick every second variable…
Inconsistent Behavior Between Mata Functions and Identical Class Methods Toward Object TypesThis is occasioned by a thread begun by Alfonso Sánchez-Peñalver here. It’s been a while since I’ve…
Questions about the spmap commandHello Stata Community, I am currently using STATA/SE 14 to analyze social expenditure at the region…
Subscribe to:
Post Comments (Atom)
0 Response to egen, group, label - "r(132), too few quotes"
Post a Comment