Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: interaction expansion for corr or pwcorr
From
Lloyd Dumont <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: interaction expansion for corr or pwcorr
Date
Mon, 13 Aug 2012 15:25:00 -0700 (PDT)
Hello.
I am just trying to generate a simple table of two-way correlations for the variables I used in a model I just estimated. But, the model includes two-way interaction terms that I included using Stata 12's facility for interaction expansion. For example...
reg c.X1##(c.X2 c.X3)
So, given that corr and pwcorr do not seem to allow for simple interaction expansion, what is the most efficient way to do it? Should I just generate the interactions the old-fashioned way? I can do that, but then it sort of defeats the purpose of the wonderful advances Stata has made with interaction expansion.
Is there a more efficient way to tackle this issue?
Thank you for your suggestions.
Lloyd
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/