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)'
How to generate a value for groups of distinct value of a variable and then drop subgroups based on the value generated?Hi! I have a dataset including ppl's information in the group of family (each observation has a pid …
Creating interaction terms of country and period fixed effectsDear all, I had a general question regarding the construction of interaction terms using country an…
Asdoc QueryHey I have two small questions 1) How to end a nested table and start a new one? 2) How to export A…
defining group numbersDear All, I found this question here (https://bbs.pinggu.org/thread-7407152-1-1.html). The data is …
egen total Addition error in 15.1Dear Statalist Members, I am running into a peculiar issue with Stata 15.1 with the following [i bel…
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