ssmodels: Sample Selection Models

In order to facilitate the adjustment of the sample selection models existing in the literature, we created the 'ssmodels' package. Our package allows the adjustment of the classic Heckman model (Heckman (1976), Heckman (1979) <doi:10.2307/1912352>), and the estimation of the parameters of this model via the maximum likelihood method and two-step method, in addition to the adjustment of the Heckman-t models introduced in the literature by Marchenko and Genton (2012) <doi:10.1080/01621459.2012.656011> and the Heckman-Skew model introduced in the literature by Ogundimu and Hutton (2016) <doi:10.1111/sjos.12171>. We also implemented functions to adjust the generalized version of the Heckman model, introduced by Bastos, Barreto-Souza, and Genton (2021) <doi:10.5705/ss.202021.0068>, that allows the inclusion of covariables to the dispersion and correlation parameters, and a function to adjust the Heckman-BS model introduced by Bastos and Barreto-Souza (2020) <doi:10.1080/02664763.2020.1780570> that uses the Birnbaum-Saunders distribution as a joint distribution of the selection and primary regression variables. This package extends and complements existing R packages such as 'sampleSelection' (Toomet and Henningsen, 2008) and 'ssmrob' (Zhelonkin et al., 2016), providing additional robust and flexible sample selection models.

Version: 2.0.0
Depends: R (≥ 3.6.0)
Imports: sn (≥ 2.1.0), numDeriv (≥ 2016.8-1.1), pracma (≥ 2.3.8), miscTools (≥ 0.6-26), Rdpack (≥ 2.4)
Suggests: knitr (≥ 1.24), testthat (≥ 3.0.0), maxLik (≥ 1.3-6), mvtnorm (≥ 1.0-11), sampleSelection (≥ 1.2-6), kableExtra (≥ 1.1.0), kfigr (≥ 1.2), ggplot2 (≥ 3.2.1), gridExtra (≥ 2.3)
Published: 2025-06-01
DOI: 10.32614/CRAN.package.ssmodels
Author: Fernando de Souza Bastos [aut, cre], Wagner Barreto de Souza [aut]
Maintainer: Fernando de Souza Bastos <fernando.bastos at ufv.br>
BugReports: https://github.com/fsbmat-ufv/ssmodels/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://fsbmat-ufv.github.io/ssmodels/
NeedsCompilation: no
Materials: README NEWS
CRAN checks: ssmodels results

Documentation:

Reference manual: ssmodels.pdf
Vignettes: ssmodels: A package for fit the sample selection models (source, R code)

Downloads:

Package source: ssmodels_2.0.0.tar.gz
Windows binaries: r-devel: ssmodels_1.0.1.zip, r-release: ssmodels_1.0.1.zip, r-oldrel: ssmodels_1.0.1.zip
macOS binaries: r-release (arm64): ssmodels_1.0.1.tgz, r-oldrel (arm64): ssmodels_1.0.1.tgz, r-release (x86_64): ssmodels_1.0.1.tgz, r-oldrel (x86_64): ssmodels_1.0.1.tgz
Old sources: ssmodels archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ssmodels to link to this page.