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)'
Creating ordered pairs of smaller datasets based on a larger datasetDear all, Assume that we have a dataset that looks like this: Code: input str10 firm_id int year …
Moving Averages Unbalanced Panel dataHi, I have 2 data sets that I have merged. The linked data is yearly data, starting 1996 and the su…
Interpretation of Fixed effects on a panel dataHello everyone, I am working on my thesis project but having some difficulties in interpreting the …
Confidence intervals for sensitivity/specificity/ppv/npv after estat classificationHello all, I'm working on a project evaluating several biomarkers to predict pre-eclampsia (high b…
Help! How to combine different observations into one observation?Hi Statalists! So I am currently working on this project about intergenerational income persistence,…
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