[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Nick Winter <nwinter@virginia.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: -graph twoway (function ...)- question |

Date |
Thu, 24 Jul 2008 09:37:25 -0400 |

I don't have an answer to your specific question, but another way to go is to plot predicted probabilities. My -oprobpr- package might help for this. (-oprobpr- only works after -oprobit- not -probit-, but oprobit will estimate the same model as probit if there are only two response categories; just use the -categories()- option to specify which response category you want plotted.

-Nick Winter

Andrea Bennett wrote:

Dear all,

I have estimated average marginal effects from a probit regression with -margeff- and would like to generate a graph which plots the marginal effects for 3 age categories (dummies) dependent on a continuous variable called cont.

The model is as such:

y = b0 + b1*age2 + b2*age3 + b3*age2*cont +b4*age3*cont + b5*cont + controls

As age2 and age3 are dummies, would the following graph command be correct:

twoway (function age1 = _b[cont]*x, range(0 0.5)) (function age2 = _b[age2] + (_b[cont] + _b[cont_age2])*x, range(0 0.5)) (function age3 = _b[age3] + (_b[cont] + _b[cont_age3])*x, range(0 0.5))

The way I understand it, since I have now marginal effects I can work equivalently to linear models. Then the above graph should be correct, right? Further, this would also be correct when introducing other interactions with -cont- as long as I am looking at the marginal effects of age groups when -cont- changes?

Many thanks for your considerations,

Andrea

*

* 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/

-- -------------------------------------------------------------- Nicholas Winter 434.924.6994 t Assistant Professor 434.924.3359 f Department of Politics nwinter@virginia.edu e University of Virginia faculty.virginia.edu/nwinter w PO Box 400787, 100 Cabell Hall Charlottesville, VA 22904 * * 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/

**Follow-Ups**:**Re: st: -graph twoway (function ...)- question***From:*Andrea Bennett <mac.stata@gmail.com>

**References**:**st: -graph twoway (function ...)- question***From:*Andrea Bennett <mac.stata@gmail.com>

- Prev by Date:
**st: Re: changing adopath and profile.do with Mac OSX** - Next by Date:
**Re: st: Interpreting PCA output** - Previous by thread:
**st: -graph twoway (function ...)- question** - Next by thread:
**Re: st: -graph twoway (function ...)- question** - Index(es):

© Copyright 1996–2017 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |