Hi all
I want help in generating all the possible combinations using 20 variables(diseases) in STATA.
I want combinations of three variables. How will I do that?
These variables are binary in nature.
For example, I want to have a combination like c1+c2+c3 and if this adds to 3 then assign yes(=1) for this new variable of the combination
Please help.