Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: interaction expansion for corr or pwcorr


From   Lloyd Dumont <lloyddumont@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index