Estimation and Inference for Heckman Selection Models with Cluster-Robust Variance

Tools for the estimation of Heckman selection models with robust variance-covariance matrices. It includes functions for computing the bread and meat matrices, as well as clustered standard errors for generalized Heckman models, see Fernando de Souza Bastos and Wagner Barreto-Souza and Marc G. Genton (2022, ISSN: < https://www.jstor.org/stable/27164235>). The package also offers cluster-robust inference with sandwich estimators, and tools for handling issues related to eigenvalues in covariance matrices.


heckmanGE

heckmanGE

The heckmanGE package has functions for modeling data with selection bias problems. It includes the generalized Heckman model, introduced by Bastos, Barreto-Souza, and Genton (2022), which allows the inclusion of covariates to the dispersion and correlation parameters, allowing the sample selection bias and the dispersion parameters to depend on covariates. More than that, our package allows the inclusion of sample weights and the grouping of data into clusters, in such a way that between clusters the errors are independent, but correlated within each cluster. The package also allows the adjustment of the classical Heckman model (Heckman (1976), Heckman (1979)) and the estimation of the parameters of this model via the maximum likelihood method and the two-step method.

Installation

You can install the released version of heckmanGE from CRAN with:

install.packages("heckmanGE")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("fsbmat-ufv/heckmanGE")

Code of Conduct

{heckmanGE} is released with a Contributor Code of Conduct.

References

Bastos, Fernando de Souza, Wagner Barreto-Souza, and Marc G Genton. 2022. “A Generalized Heckman Model with Varying Sample Selection Bias and Dispersion Parameters.” Statistica Sinica.

Heckman, James J. 1976. “The Common Structure of Statistical Models of Truncation, Sample Selection and Limited Dependent Variables and a Simple Estimator for Such Models.” In Annals of Economic and Social Measurement, Volume 5, Number 4, 475–92. NBER.

———. 1979. “Sample Selection Bias as a Specification Error.” Econometrica: Journal of the Econometric Society, 153–61.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("heckmanGE")

1.0.0 by Bastos Fernando de Souza, 2 years ago


https://github.com/fsbmat-ufv/heckmanGE


Report a bug at https://github.com/fsbmat-ufv/heckmanGE/issues


Browse source code at https://github.com/cran/heckmanGE


Authors: Bastos Fernando de Souza [aut, cre] , Barbosa Rogério Jerônimo [aut] , Prates Marcos Oliveira [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports glm2, maxLik, miscTools, vctrs


See at CRAN