Home  /  Resources & support  /  FAQs  /  Accessing the marginal effects vector after dprobit

How can I access the marginal effects vector after dprobit?

Title   Accessing the marginal effects vector after dprobit
Author William Sribney, StataCorp
Date April 1997

dprobit does not save the dF/dx, but it is relatively straightforward to compute it.
        . dprobit y x1 x2 ... 
        . matrix b = get(_b)
        . scalar fz = (1/sqrt(2*_pi))*exp(-(S_E_xbar^2)/2)
        . matrix df = fz*b
        . matrix list df

This should give the correct results for continuous variables if you used the option at(xbar) (the default). If you used at(some number), replace it with invnorm(some number).

See Stata 6.0 Reference Manual, Volume 3, pages 78–79 for the formulas and for details (and how to do the computation for dummy variables).