Hi all,
I have a dataset that includes 14 dummy variables
(0/1). Essentially, I want to be able to generate
variables (to be included in the dataset), each of
which represents a pairwise combination of the 14
dummies.
For example, let the 14 dummies be represented by
x1...x14. Then I want another variable x1x2 which
equates to 1 if x1 and x2 both equal 1; 0 otherwise.
And then I would need this done for all 14c2 ("14
choose 2") combinations. I suppose I could do it
manually, but there's gotta be a simpler way.
Probably more importantly, is it possible to add these
variables in a regression without eating into the 800
max matsize that I get to use in Stata Intercooled?
Thanks,
CM
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/