Statalist


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

st: AW: How to graph interactions after regression


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: How to graph interactions after regression
Date   Wed, 17 Jun 2009 17:56:37 +0200

<> 

********
clear*

inp x vision:mylabel apart:mylabel2 , auto
1.64 vision apart
 2.31 vision together
1.89  blind apart
3.43 blind together
end

compress
list, noobs

twoway (connected x apart if vision==1)/* 
 */  (connected x apart if vision==2), /* 
 */ ytitle(" ") xtitle(" ") /* 
 */ xline(1.5, lcolor(black))/* 
 */  xlabel(none) legend(off)
********


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von
lschoele@rumms.uni-mannheim.de
Gesendet: Mittwoch, 17. Juni 2009 17:39
An: statalist@hsphsun2.harvard.edu
Betreff: st: How to graph interactions after regression

Hi Statalist,

I included 6 interaction terms in my regression. Two were significant
so I would like to graph them. This is an example for the graph I
would like to generate  
http://en.wikipedia.org/wiki/File:Interaction_effect.gif

Can anybody tell me what command I have to
use to generate that graph?

Thank you very much
Lisa

 

*
*   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/


*
*   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   |   What's new   |   Site index