Stata: Data Analysis and Statistical Software
   >> Home >> Resources & support >> FAQs >> Stata 5: Obtaining Mills’ ratios for Heckman models
This FAQ is for users of Stata 5, an older version of Stata. It is not relevant for more recent versions.

Stata 5: How can I get the Mills' ratios for my Heckman model?

Title   Stata 5: Obtaining Mills’ ratios for Heckman models
Author James Hardin, StataCorp
Date May 1997

The heckman command does not save the Mills’ ratios that it uses in the estimation of the Heckman selection model. However, it is straightforward to calculate them yourself:

  1. Calculate the probit model for the participation.
  2. Obtain the linear predictors from the model. For example,
     . predict phat, xb
    
  3. Calculate the Mills' ratios. For example,
     . gen mills = exp(-.5*phat2)/(sqrt(2*_pi)*normprob(phat))
    

Alternatively, you could specify the trace option to heckman.

Bookmark and Share 
FAQs
What's new?
Statistics
Data management
Graphics
Programming Stata
Mata
Resources
Internet capabilities
Stata for Windows
Stata for Unix
Stata for Mac
Technical support
Like us on Facebook Follow us on Twitter Follow us on LinkedIn Google+ Watch us on YouTube
Follow us
© Copyright 1996–2013 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index   |   View mobile site