Hello,
I'm attempting to generate a dummy for each combination in a list. I've used the following code:
However, as opposed to the 31 dummies that I would like this to generate, I am left with a dummy for each of the 5 variables, a group variable equal to 1 1 1 1 1 or (missing), and a gr_1 variable equal to 1 or (missing). Would there be a way to generate all possible combinations of these dummies?
Thank you.
I'm attempting to generate a dummy for each combination in a list. I've used the following code:
Code:
egen group = group(female native white age single), label tab group, generate(gr_)
Thank you.
Comment