Skip to content

switchSelection

Endogenous Switching and Sample Selection Regression Models

v2.1.0 · Apr 15, 2026 · GPL (>= 2)

Description

Estimate the parameters of multivariate endogenous switching and sample selection models using methods described in Newey (2009) <doi:10.1111/j.1368-423X.2008.00263.x>, E. Kossova, B. Potanin (2018) <https://ideas.repec.org/a/ris/apltrx/0346.html>, E. Kossova, L. Kupriianova, B. Potanin (2020) <https://ideas.repec.org/a/ris/apltrx/0391.html> and E. Kossova, B. Potanin (2022) <https://ideas.repec.org/a/ris/apltrx/0455.html>.

Downloads

CRAN

547

Last 30 days

6397th

1.5K

Last 90 days

3.4K

Last year

Trend: 0% (30d vs prior 30d)

r2u CRAN

40

Last 30 days

134

Last 90 days

450

Last year

Trend: -34.4% (30d vs prior 30d)

autoCRAN

0

Last 7 days

8

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
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 OK
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 History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
NOTE 12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
NOTE r-devel-linux-x86_64-debian-gcc

R code for possible problems

Warning in file(open = "w+") :
  cannot open file '/tmp/RtmpvKEXfI/Rf1a0a1d55f9b31a': No space left on device
Error in file(open = "w+") : cannot open the connection
Calls: <Anonymous> -> .load_namespace_quietly -> .try_quietly -> file
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
NOTE 11 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE r-release-macos-x86_64

compiled code

File ‘switchSelection/libs/switchSelection.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 17, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/switchSelection.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.3Mb
  sub-directories of 1Mb or more:
    libs   4.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    libs   4.5Mb
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.3Mb
  sub-directories of 1Mb or more:
    libs   4.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    libs   4.5Mb

Dependency Network

Dependencies Reverse dependencies Rcpp hpa mnorm gena (>= 1.0.1) dplyr switchSelection

Version History

8 tracked
updated 2.1.0 ← 2.0.0 diff Apr 15, 2026
new 2.0.0 Mar 10, 2026
updated 2.0.0 ← 1.1.2 diff Sep 25, 2024
updated 1.1.2 ← 1.1.1 diff Aug 22, 2023
updated 1.1.1 ← 1.1.0 diff Aug 10, 2023
updated 1.1.0 ← 1.0.1 diff Aug 6, 2023
updated 1.0.1 ← 1.0.0 diff May 7, 2023
new 1.0.0 May 2, 2023