Description
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).
Downloads
6.5K
Last 30 days
1475th
23.5K
Last 90 days
99.5K
Last year
Trend: -29.9% (30d vs prior 30d)
33
Last 30 days
529
Last 90 days
4K
Last year
Trend: -78.2% (30d vs prior 30d)
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (1 non-OK)
tests
Running ‘Mroz87SelectionTest.R’ [1s/1s] Comparing ‘Mroz87SelectionTest.Rout’ to ‘Mroz87SelectionTest.Rout.save’ ...76c76 < imrData$IMR1 -1.097620 1.252900 -0.88 0.38 --- > imrData$IMR1 -1.097619 1.252900 -0.88 0.38 88c88 < Return code 2: successive function values within tolerance limit (tol) --- > Return code 1: gradient close to zero (gradtol) 120c120 < -1.097620 --- > -1.097619 144c144 < invMillsRatio -1.097620 1.26599 -0.867 3.86e-01 --- > invMillsRatio -1.097619 1.26599 -0.867 3.86e-01 171c171 < educ -0.1904 0.000725 -2.53e-05 1.01e-02 -2.82e-03 --- > educ -0.1904 0.000725 -2.53e-05 1.00e-02 -2.82e-03 196c196 < educ -0.1904 0.000725 -2.53e-05 1.01e-02 -2.82e-03 --- > educ -0.1904 0.000725 -2.53e-05 1.00e-02 -2.82e-03 Running ‘binarySelectionOutcome.R’ [2s/2s] Comparing ‘binarySelectionOutcome.Rout’ to ‘binarySelectionOutcome.Rout.save’ ... OK Running ‘fail.R’ [1s/1s] Comparing ‘fail.Rout’ to ‘fail.Rout.save’ ... OK Running ‘heckitIvTest.R’ [1s/1s] Comparing ‘heckitIvTest.Rout’ to ‘heckitIvTest.Rout.save’ ... OK Running ‘intervalTest.R’ [3s/3s] Comparing ‘intervalTest.Rout’ to ‘intervalTest.Rout.save’ ... OK Running ‘invMillsRatioTest.R’ [3s/3s] Comparing ‘invMillsRatioTest.Rout’ to ‘invMillsRatioTest.Rout.save’ ... OK Running ‘probit.R’ [1s/1s] Comparing ‘probit.Rout’ to ‘probit.Rout.save’ ...4426c4426 < Return code 2: successive function values within tolerance limit (tol) --- > Return code 1: gradient close to zero (gradtol) 6183c6183 < 7.04e-02 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.95e-06 7.73e-01 7.52e-01 --- > 7.04e-02 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.96e-06 7.73e-01 7.52e-01 Running ‘selection.R’ [3s/3s] Comparing ‘selection.Rout’ to ‘selection.Rout.save’ ... OK
Check History
NOTE 12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 27, 2026
tests
Running ‘Mroz87SelectionTest.R’ [1s/1s] Comparing ‘Mroz87SelectionTest.Rout’ to ‘Mroz87SelectionTest.Rout.save’ ...76c76 < imrData$IMR1 -1.097620 1.252900 -0.88 0.38 --- > imrData$IMR1 -1.097619 1.252900 -0.88 0.38 88c88 < ...[truncated]... 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.95e-06 7.73e-01 7.52e-01 --- > 7.04e-02 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.96e-06 7.73e-01 7.52e-01 Running ‘selection.R’ [3s/3s] Comparing ‘selection.Rout’ to ‘selection.Rout.save’ ... OK
WARNING 11 OK · 1 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 14, 2026
re-building of vignette outputs
Error(s) in re-building vignettes: ... --- re-building ‘intReg.Rnw’ using Sweave Loading required package: miscTools Please cite the 'maxLik' package as: Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation ...[truncated]... orum or 'tracker' at maxLik's R-Forge site: https://r-forge.r-project.org/projects/maxlik/ --- finished re-building ‘treatReg.Rnw’ SUMMARY: processing the following file failed: ‘selection.Rnw’ Error: Vignette re-building failed. Execution halted
tests
Running ‘Mroz87SelectionTest.R’ [1s/1s] Comparing ‘Mroz87SelectionTest.Rout’ to ‘Mroz87SelectionTest.Rout.save’ ...76c76 < imrData$IMR1 -1.097620 1.252900 -0.88 0.38 --- > imrData$IMR1 -1.097619 1.252900 -0.88 0.38 88c88 < ...[truncated]... 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.95e-06 7.73e-01 7.52e-01 --- > 7.04e-02 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.96e-06 7.73e-01 7.52e-01 Running ‘selection.R’ [3s/3s] Comparing ‘selection.Rout’ to ‘selection.Rout.save’ ... OK
NOTE 12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
tests
Running ‘Mroz87SelectionTest.R’ [1s/1s] Comparing ‘Mroz87SelectionTest.Rout’ to ‘Mroz87SelectionTest.Rout.save’ ...76c76 < imrData$IMR1 -1.097620 1.252900 -0.88 0.38 --- > imrData$IMR1 -1.097619 1.252900 -0.88 0.38 88c88 < ...[truncated]... 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.95e-06 7.73e-01 7.52e-01 --- > 7.04e-02 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.96e-06 7.73e-01 7.52e-01 Running ‘selection.R’ [3s/3s] Comparing ‘selection.Rout’ to ‘selection.Rout.save’ ... OK
ERROR 11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
PDF version of manual
Rd conversion errors: Converting parsed Rd's to LaTeX ..Warning in file(out, "wt") : cannot open file '/tmp/RtmpUaDuiX/filed3cc43823c47a': No space left on device Warning in file(con, "r") : cannot open file '/tmp/RtmpUaDuiX/filed3cc43823c47a': No such file or directory Error in file(con, "r") : cannot open the connection
tests
Running ‘Mroz87SelectionTest.R’ [1s/1s] Comparing ‘Mroz87SelectionTest.Rout’ to ‘Mroz87SelectionTest.Rout.save’ ...76c76 < imrData$IMR1 -1.097620 1.252900 -0.88 0.38 --- > imrData$IMR1 -1.097619 1.252900 -0.88 0.38 88c88 < ...[truncated]... 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.95e-06 7.73e-01 7.52e-01 --- > 7.04e-02 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.96e-06 7.73e-01 7.52e-01 Running ‘selection.R’ [3s/3s] Comparing ‘selection.Rout’ to ‘selection.Rout.save’ ... OK
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
tests
Running ‘Mroz87SelectionTest.R’ [1s/1s] Comparing ‘Mroz87SelectionTest.Rout’ to ‘Mroz87SelectionTest.Rout.save’ ...76c76 < imrData$IMR1 -1.097620 1.252900 -0.88 0.38 --- > imrData$IMR1 -1.097619 1.252900 -0.88 0.38 88c88 < ...[truncated]... 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.95e-06 7.73e-01 7.52e-01 --- > 7.04e-02 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.96e-06 7.73e-01 7.52e-01 Running ‘selection.R’ [3s/3s] Comparing ‘selection.Rout’ to ‘selection.Rout.save’ ... OK
tests
Running ‘Mroz87SelectionTest.R’ [1s/1s] Comparing ‘Mroz87SelectionTest.Rout’ to ‘Mroz87SelectionTest.Rout.save’ ...76c76 < imrData$IMR1 -1.097620 1.252900 -0.88 0.38 --- > imrData$IMR1 -1.097619 1.252900 -0.88 0.38 88c88 < ...[truncated]... 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.95e-06 7.73e-01 7.52e-01 --- > 7.04e-02 1.46e-01 1.72e-01 2.22e-01 -4.72e-01 8.96e-06 7.73e-01 7.52e-01 Running ‘selection.R’ [3s/3s] Comparing ‘selection.Rout’ to ‘selection.Rout.save’ ... OK