Hi,
I am new to STATA. All the binary variables in my dataset are coded such that 1 is a "yes" and 2 is a "No" and I wanted to recode all variables such that 1 is a "yes" and 0 a "No." How do I do that to all the binary variables in the dataset? Will I have to construct loops?
I am new to STATA. All the binary variables in my dataset are coded such that 1 is a "yes" and 2 is a "No" and I wanted to recode all variables such that 1 is a "yes" and 0 a "No." How do I do that to all the binary variables in the dataset? Will I have to construct loops?
Comment