Bookmark and Share

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: RE: storing beta coefficients for interactions in estout


From   Joe Canner <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: storing beta coefficients for interactions in estout
Date   Thu, 10 Oct 2013 17:11:44 +0000

Laura,

I'm surprised you got that far.  When I run -eststo- on a regression with interactions it tells me "interactions not allowed".  This may be why you are not getting the interaction betas.  (-estadd- and -estout- continue to run regardless of the error.)

Although the -estout- documentation doesn't seem to explicitly cover this exception, the example they use shows how to get interaction terms by multiplying the factors, something which wouldn't be necessary if it supported interactions already.

Regards,
Joe Canner
Johns Hopkins University School of Medicine

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Laura Gibson
Sent: Thursday, October 10, 2013 12:28 PM
To: [email protected]
Subject: st: storing beta coefficients for interactions in estout

Hello,

I'm enjoying using the estout package to automatically print my estimates to files - and have quickly begun to rely on the speed with which output can be transferred to Excel. I discovered today that although betas for interactions specified by ## will print in the results window, I cannot seem to find where that estimate is saved in order to add it to my stored estimate for later printing.

So this works for getting the betas for the interactions:

reg dv i.iv1##i.iv2, beta

But if I store the estimates and estadd beta:

eststo: reg dv i.iv1##i.iv2
estadd beta
estout, cells(beta)

Only the betas for the main effects (not the interactions) are stored, and thus printed. 

Any ideas how to access the stored beta coefficients for the interaction? 

Thanks so much,
-Laura

----------------------------
Laura Gibson, PhD
University of Pennsylvania


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index