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

RE: st: dprobit/nocons/mfx question

From   Richard Williams <>
To   "" <>, "" <>
Subject   RE: st: dprobit/nocons/mfx question
Date   Fri, 20 Mar 2009 11:01:17 -0500

At 09:34 AM 3/20/2009, Schaffer, Mark E wrote:
Some off-list discussion with Kit Baum reveals a very compelling reason
for retaining -dprobit- as a documented command:  it is *much* faster
than -mfx-.

An example with the toy auto dataset is below.  -dprobit- is 30x faster.
I'm using IC Stata 10.1 and a nothing-special wintel desktop machine.

Kit made a very good point, which is that this suggests there is a good
case for asking StataCorp to tweak -mfx- so that it spots it is dealing
with -probit- and can do whatever it is that -dprobit- does to get the
marginal effects so much faster.


Also, look at Tomas Bartus's -margeff-. It doesn't work with every command, but when it does work it is way faster than -mfx-, and it also offers several powerful options. Note that you need to change its default options if you want the same results as -mfx- (but many seem to think that margeff's defaults are better anyway.) The Stata Journal article on -margeff- is now a freebie at

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

*   For searches and help try:

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