Hi,
I have a variable in my dataset which is a combination variable of two other variables which I created using the below code
Now, due to small cells in some of the resulting groups I am recoding some of the categories of this variable and creating a new variable using this code:
. My question is how can I copy the labels of the unchanged categories from the old to the new variable without having to do it manually one by one.
Thanks in advance
I have a variable in my dataset which is a combination variable of two other variables which I created using the below code
Code:
egen varAB = group(varA varB), label
Code:
recode varAB(156/191=191 "newname"), gen(newvarAB)
Thanks in advance
Comment