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: how to get a two-line-graph for predicted probabilites in logistic regression model with a metric controll variable (SE10)


From   "Prof. Dr. Claudia Schuchart" <[email protected]>
To   [email protected]
Subject   st: how to get a two-line-graph for predicted probabilites in logistic regression model with a metric controll variable (SE10)
Date   Tue, 28 May 2013 15:53:16 +0200

Dear statalist user,
I did a graph with SE10 for predicted probabilites in a logistic regression model. I controlled for intelligence (metric), and considered two indendent binary vaiables as well as the interaction between them (N=187). I want to have a two-line-graph (holding intelligence constant), instead I got multiple graphs for any intelligence value:

xi: logit y i.a*i.b IQ
predict y, pr
separate y, by(b)
graph twoway line y0 y1 a , xlabel(1 2)

How can I get  a two line graph only?
Claudia
*
*   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