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: 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" <schuchart@uni-wuppertal.de>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index