Hi there,
I am trying to recode age in my dataset (min 40, max 70) into 7 categories;
recode age 40/44 = 40-44 45/49 = 45-49 50/54 = 50-54 55/59 = 55-59 60/64 = 60
> -64 65/69 = 65-69 70/74 = 70-74, generate(Age groups)
OR
recode age 40/44 = A 45/49 = B 50/54 = C 55/59 = D 60/64 = E 65/69 = F 70/74
> = G, generate(Age groups)
but then getting this error message;
the number of new and transformed varnames should be the same
r(198);
Please assist?
Thank you.
Related Posts with Recoding to a categorical variable_'the number of new and transformed varnames should be the same r(198)'
Interpreting turning poingHello, I have calculated the turning points of my models, but in one of them i first differenced som…
Race and age composition for 50 states in multiple yearsI'm working with ACS data where I'm gonna need state controls like - income per capita , unemploymen…
OLS R^2 for large datasets inaccurate (lassogof)Dear community, I am using 'lassogof' to compare the performance of different Lasso, Elastic Net an…
Heckman Selection model failing to convergeSorry if this is long, but I think the context is needed. I have a regression for estimating likeli…
Flipping (renaming) a stringHello, I have a series of varnames named year2010A | year2010B | ... | year2011A | year2011B | ... …
Subscribe to:
Post Comments (Atom)
0 Response to Recoding to a categorical variable_'the number of new and transformed varnames should be the same r(198)'
Post a Comment