Hello,
I hope someone can help me. I want to create a new variable by combining 5 other variables. More specifically: the 5 variables I want to combine all have the values either "TRUE" or "FALSE". Now I would like to create a new variable where I can combine these 5 so that if in any of this 5 variables I have a "TRUE" a "TRUE" will show in the new variable and if I have a "FALSE" in all five variables a "FALSE" will appear in the new variable.
FALSE=1 and TRUE=2. Would it be a possibility to change the FALSE value of 1 into 0 and then count all the ones that end up with a value of 0 and if yes how would this be done?
Does someone, anyone know how to do it in STATA? As I have a very large database to do it all by hand would take very long.
Thank you very much for your help it is much much appreciated.
Isabel
I hope someone can help me. I want to create a new variable by combining 5 other variables. More specifically: the 5 variables I want to combine all have the values either "TRUE" or "FALSE". Now I would like to create a new variable where I can combine these 5 so that if in any of this 5 variables I have a "TRUE" a "TRUE" will show in the new variable and if I have a "FALSE" in all five variables a "FALSE" will appear in the new variable.
FALSE=1 and TRUE=2. Would it be a possibility to change the FALSE value of 1 into 0 and then count all the ones that end up with a value of 0 and if yes how would this be done?
Does someone, anyone know how to do it in STATA? As I have a very large database to do it all by hand would take very long.
Thank you very much for your help it is much much appreciated.
Isabel
Comment