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]

From |
Scott Merryman <scott.merryman@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: 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 19:59:00 -0500 |

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 <schuchart@uni-wuppertal.de> 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/

**Follow-Ups**:**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" <schuchart@uni-wuppertal.de>

**References**:**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>

- Prev by Date:
**Re: st: lowest value in a series of variables in wide data** - Next by Date:
**Re: st: Rather blue screen than this :(** - Previous by thread:
**st: how to get a two-line-graph for predicted probabilites in logistic regression model with a metric controll variable (SE10)** - Next by thread:
**Re: st: how to get a two-line-graph for predicted probabilites in logistic regression model with a metric controll variable (SE10)** - Index(es):