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

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

From   Nick Winter <>
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,

* For searches and help try:
Nicholas Winter                                 434.924.6994 t
Assistant Professor                             434.924.3359 f
Department of Politics         e
University of Virginia w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904

*   For searches and help try:

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