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: How to plot ologit graph?


From   "Joseph Coveney" <[email protected]>
To   <[email protected]>
Subject   st: Re: How to plot ologit graph?
Date   Fri, 4 Mar 2011 10:07:56 +0900

Gari Walkowitz wrote:

I was running an ologit regression with 3 explanatory variables (including 1 interaction term).

Does anyone know an easy way to plot the results (line, regression fit)?

--------------------------------------------------------------------------------

Would something like the following be a start?

Joseph Coveney

sysuse auto
ologit rep78 c.weight##i.foreign, nolog
predict double xb, xb
graph twoway line xb weight if !foreign, sort || ///
    line xb weight if foreign, sort ///
    ytitle("Repair Record (Linear Predictor)") ///
    text(2 2500 "Foreign") text(-1 2500 "Domestic") ///
    legend(off)
exit



*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index