Thank you @Reeza for this question. Your statement is correct. The combinations will 0, 1, and 0&1 together versus 0, 1, and 0&1 together. I have 12 variables (corvar1 through corvar12), and each corvar takes the values of 0 and 1. And the other dummy, allmdummy, takes the values of 0 and 1 too. I want to be able to run the same regression for every single combination, which amounts to 108. All the possible combinations for the first variable will look like the following:
corvar1=0 and allmdummy=0,
corvar1=0 and allmdummy=1
corvar1=0 and allmdummy= 0 or 1
corvar1=1 and allmdummy=0,
corvar1=1 and allmdummy=1
corvar1=1 and allmdummy= 0 or 1
corvar1=0,1, allmdummy=0,
corvar1=0,1 allmdummy=1
corvar1=0,1 allmdummy= 0 or 1
Ideally, I will be able to create a unique sampleid for each combination and then run proc reg and proc means command for each combination (sampleid). I hope this helps. Please let me know if you have any follow-up questions.
Thank you so much!
... View more