Hello fellow stata-users,

Does anyone know how to generate a new variable that solely ranges between 0-1 by combining two variables that themselves have these two values? That is, if one of the variables has a 1 i want the new variable to show 1 even if the other variable solely show 0. I suppose I should use the "if" command?

Please help!
/Johan