Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: margeff/margins discrepancy


From   Richard Williams <Williams.NDA@comcast.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: margeff/margins discrepancy
Date   Mon, 26 Apr 2010 21:02:30 -0500

At 06:27 PM 4/26/2010, Joao Ricardo F. Lima wrote:
Dear Richard and Statalister,

use -margeff, at(mean) replace-

************begin example***********
sysuse nlsw88.dta, clear
probit married wage if age==45
margeff, at(mean) replace
margins, dydx(wage)
*************end example**********

Thanks. I haven't worked through the code, but it appears the at(mean) option avoids the buggy part of the code that Kit discovered. Unfortunately, using at(mean) wipes out one of the biggest advantages of margeff, which is getting the average partial effects. The new margins command will now get you the average partial effects, but margeff is often quicker and easier (plus it is just about the only option if you don't have Stata 11).


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index