Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: margeff/margins discrepancy


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: margeff/margins discrepancy
Date   Sun, 25 Apr 2010 23:07:39 -0500

At 09:14 PM 4/25/2010, Michael Mitchell wrote:
Greetings

 Hmmm... ran your code and I get the same coefficient and se from
-margeff- and -margins- using Stata 11, see below

Ok, I have a theory. Is there any chance you are using the old version of margeff, that has now been renamed margeff8? Because margeff8 gives the same answer as margins while margeff does not:

. margeff8

Average marginal effects on Prob(married==married) after probit

------------------------------------------------------------------------------
     married |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        wage |  -.0071433   .0150751    -0.47   0.636      -.03669    .0224033
------------------------------------------------------------------------------

. margins, dydx(wage)

Average marginal effects                          Number of obs   =         78
Model VCE    : OIM

Expression   : Pr(married), predict()
dy/dx w.r.t. : wage

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        wage |  -.0071433   .0150751    -0.47   0.636    -.0366901    .0224034
------------------------------------------------------------------------------

. margeff

Average partial effects after probit
      y  = Pr(married)

------------------------------------------------------------------------------
    variable |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        wage |  -.0071375   .0149933    -0.48   0.634    -.0365238    .0222489
------------------------------------------------------------------------------


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index