Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: why is this graph all over the place?


From   Nirina F <fstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: why is this graph all over the place?
Date   Thu, 17 Sep 2009 07:41:23 -0400

Dear all,

I would like to graph the predicted probabilities of  having foreign
against mpg in order to highlight the slope(basically the marginal
effects) at each value of mpg.
I run the following but it is all over the place because I think it is
giving me the predicted probabilities from different variables.
Could you help me in this please. also if you could help me graph the
marginal effects of mpg from this probit equation against each value
of mpg.

probit  foreign price mpg rep78 headroom trunk weight
predict pmpg, p
sort mpg
twoway line  pmpg mpg

Thank you veyr much,
N
*
*   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/



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