Hi there,
I am attempting to create four groups from a categorical variable. I have attempted using the code for continuous data but have had no luck, e.g recode A (var1,var2,var3=1) (var4,var5=2) gen A_group ..etc. But when I tried this I got the error message "unknown el Var1 in rule
r(198);
There are between 2 and 3 different answers in each category. Any advice would be appreciated.
I am attempting to create four groups from a categorical variable. I have attempted using the code for continuous data but have had no luck, e.g recode A (var1,var2,var3=1) (var4,var5=2) gen A_group ..etc. But when I tried this I got the error message "unknown el Var1 in rule
r(198);
There are between 2 and 3 different answers in each category. Any advice would be appreciated.
Comment