Skip to content

Robust vce for heckman estimators

2 messages · Mateus Rabello, Achim Zeileis

#
On Mon, 11 Jul 2011, Mateus Rabello wrote:

            
You can do essentially the same for selection models with sandwich 
standard errors. For example:

library("AER")
library("sampleSelection")

data("PSID1976", package = "AER")
PSID1976$nwincome <- with(PSID1976, (fincome - hours * wage)/1000)

reg <- selection(participation ~ nwincome + education + experience +
     I(experience^2) + age + youngkids + oldkids,
   log(wage) ~ education + experience + I(experience^2),
   data = PSID1976)

coeftest(reg, vcov = sandwich)

Simple "sandwich" standard errors are available while other "vcovHC" 
standard errors (such as HC2, HC3, etc.) are not available for many models 
beyond linear regression.

Note also that I used the selection() function above which is typically 
preferable to heckit(), because the former produces the maximum likelihood 
foot. The latter by default produces the 2-step estimator which is 
nowadays usually only of interest in replication studies.

Best,
Z