Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Maarten Buis <maartenlbuis@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: marginsplot of marginal effects of a factor variable from a probit, including the baseline |
Date | Wed, 17 Apr 2013 11:10:02 +0200 |
You can extend the y-axis using either the -ylab()- option or the -yscale(range())- options, e.g.: marginsplot, yline(`bl') ylab(-.15(.15).3) Hope this helps, Maarten On Wed, Apr 17, 2013 at 3:26 AM, Dimitriy V. Masterov <dvmaster@gmail.com> wrote: > Is it possible to get Stata to plot the the baseline probability from > a probit along with the marginal effects? > > Here's a toy example I have in mind. I would like to use marginsplot > to show the marginal effects, along with the baseline for 1980: > > webuse union, clear > tabstat union, by(year) > probit union ib(80).year > estimates store probit > > margins, at(year=80) post // get the baseline rate > matrix M = r(b) > local bl = M[1,1] > > estimates restore probit > margins, dydx(year) > marginsplot, yline(`bl') > > Unfortunately this does not quite work, since the baseline rate is off > the chart in this case. Is there a way to patch this up or a more > elegant way to do this? > > DVM > * > * 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/ -- --------------------------------- Maarten L. Buis WZB Reichpietschufer 50 10785 Berlin Germany http://www.maartenbuis.nl --------------------------------- * * 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/