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]

Re: 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   Re: st: how to get a two-line-graph for predicted probabilites in logistic regression model with a metric controll variable (SE10)
Date   Wed, 29 May 2013 09:57:08 +0200

Dear Scott,
unfortunately the marginsplot command is not available with SE10.
Claudia
Am 29.05.2013 02:59, schrieb Scott Merryman:
Try -margins- and -marginsplot-.

For example:

sysuse nlsw88
logit married age i.south##i.union
margins, at(south= (0 1) union = (0 1) ) atmeans
marginsplot, xd(union)
marginsplot, xd(south)

Scott


On Tue, May 28, 2013 at 8:53 AM, Prof. Dr. Claudia Schuchart
<[email protected]>  wrote:
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/
*
*   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