I am very new to stata and it is a struggle figuring out the commands. I am trying to generate a variable we can call "YESOR" by taking data from three already created variables (IRY, EWY, CPY). These variables are coded 1 for yes and 2 for no. So, I need to generate a variable that shows if the observations responded yes for any of the three variables. I also need to create a variable that includes observations that responded yes for all three (I would call this "YESAND"). Any help is appreciated.
-
Login or Register
- Log in with
Comment