Package: sampleSelection 1.2-17

Arne Henningsen

sampleSelection: Sample Selection Models

Two-step and maximum likelihood estimation of Heckman-type sample selection models: standard sample selection models (Tobit-2), endogenous switching regression models (Tobit-5), sample selection models with binary dependent outcome variable, interval regression with sample selection (only ML estimation), and endogenous treatment effects models. These methods are described in the three vignettes that are included in this package and in econometric textbooks such as Greene (2011, Econometric Analysis, 7th edition, Pearson).

Authors:Arne Henningsen [aut, cre], Ott Toomet [aut], Sebastian Petersen [ctb]

sampleSelection_1.2-17.tar.gz
sampleSelection_1.2-17.zip(r-4.7-any)sampleSelection_1.2-17.zip(r-4.6-any)sampleSelection_1.2-17.zip(r-4.5-any)
sampleSelection_1.2-17.tgz(r-4.6-any)sampleSelection_1.2-17.tgz(r-4.5-any)
sampleSelection_1.2-17.tar.gz(r-4.7-any)sampleSelection_1.2-17.tar.gz(r-4.6-any)
sampleSelection_1.2-17.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
sampleSelection/json (API)

# Install 'sampleSelection' in R:
install.packages('sampleSelection', repos = c('https://r-forge.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://r-forge.r-project.org/projects/sampleselection

Datasets:
  • Mroz87 - U.S. Women's Labor Force Participation
  • nlswork - National Longitudinal Survey of Young Working Women
  • RandHIE - RAND Health Insurance Experiment
  • Smoke - Survey Responses on Smoking Behaviour

On CRAN:

Conda:

8.78 score 5 packages 450 scripts 6.0k downloads 2 mentions 16 exports 75 dependencies

Last updated from:b6b54bd5a2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK159
source / vignettesOK307
linux-releaseOK181
macos-releaseOK182
macos-oldrelOK173
windows-develOK151
windows-releaseOK157
windows-oldrelOK151
wasm-releaseOK98

Exports:binaryChoiceheckitheckit2fitheckit5fitheckitTfitheckitVcovinvMillsRatiolinearPredictorsnObsprobitselectionstdErtobit2Bfittobit2fittobit5fittreatReg

Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecowplotcpp11DerivdigestdoBydplyrfarverforecastFormulafracdiffgenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmaxLikmgcvminqamiscToolsmodelrmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7sandwichscalesSparseMstringistringrsurvivalsystemfittibbletidyrtidyselecttimeDateurcautf8vctrsVGAMviridisLitewithrzoo

Sample Selection Models
Introduction | Heckman's solution | Implementation | Usage | Two replication exercises | Robustness issues | Conclusions

Last update: 2026-01-19
Started: 2011-11-12

Using treatReg
The Problem | Treatment Effects with Spherical Disturbances | treatReg | Conclusion

Last update: 2019-07-15
Started: 2015-02-01

Interval Regression with Sample Selection
Model Specification | Log-Likelihood Function | Restricting coefficients and 2 | Gradients of the CDF of the bivariate standard normal distribution | Gradients of the Log-Likelihood Function | Example with a Generated Dataset | Generate Dataset | Example with the `Smoke' dataset

Last update: 2017-12-07
Started: 2017-10-22

Readme and manuals

Help Manual

Help pageTopics
Extract Coefficients from Selection Modelscoef.selection coef.summary.selection nObs print.coef.selection stdEr
Fitted Values of Selection Modelsfitted.selection
Heckit Variance Covariance MatrixheckitVcov
Inverse Mill's Ratio of probit modelsinvMillsRatio
Calculates linear predictors for different modelslinearPredictors linearPredictors.probit
Data of Binary Choice Modelsmodel.frame.binaryChoice
Data of Selection Modelsmodel.frame.selection
Design Matrix of Binary Choice Modelsmodel.matrix.binaryChoice
Design Matrix of Selection Modelsmodel.matrix.selection
U.S. Women's Labor Force ParticipationMroz87
National Longitudinal Survey of Young Working Womennlswork
Predict method for fitted probit modelspredict.probit
Predict method for fitted sample selection modelspredict.selection
Binary choice models.binaryChoice probit
probit-methodsfitted.probit logLik.probit nObs.probit nobs.probit print.probit probit-methods
RAND Health Insurance ExperimentRandHIE
Residuals of probit modelsresiduals.probit
Residuals of Selection Modelsresiduals.selection
Heckman-style selection and treatment effect modelsheckit selection treatReg
selection-methodslogLik.selection nObs.selection nobs.selection print.selection selection-methods
Survey Responses on Smoking BehaviourSmoke
Summarizing Probit Estimationsprint.summary.probit summary.probit
Summarizing Selection Estimationsprint.summary.selection summary.selection
Extract Variance Covariance Matrixvcov.selection