OPSR: Ordered Probit Switching Regression

Estimates ordered probit switching regression models - a Heckman type selection model with an ordinal selection and continuous outcomes. Different model specifications are allowed for each treatment/regime. For more details on the method, see Wang & Mokhtarian (2024) <doi:10.1016/j.tra.2024.104072> or Chiburis & Lokshin (2007) <doi:10.1177/1536867X0700700202>.

Version: 1.0.0
Depends: R (≥ 3.5.0)
Imports: car, Formula, graphics, MASS, maxLik, methods, mvtnorm, Rcpp, Rdpack (≥ 0.7), sandwich, stats, texreg, utils
LinkingTo: Rcpp, RcppArmadillo
Suggests: gridExtra, gridGraphics, sampleSelection, scales, testthat (≥ 3.0.0)
Published: 2025-07-07
DOI: 10.32614/CRAN.package.OPSR
Author: Daniel Heimgartner ORCID iD [aut, cre, cph], Xinyi Wang ORCID iD [aut]
Maintainer: Daniel Heimgartner <d.heimgartners at gmail.com>
BugReports: https://github.com/dheimgartner/OPSR/issues
License: GPL (≥ 3)
URL: https://github.com/dheimgartner/OPSR
NeedsCompilation: yes
Citation: OPSR citation info
Materials: README NEWS
CRAN checks: OPSR results

Documentation:

Reference manual: OPSR.pdf
Vignettes: OPSR: A Package for Estimating Ordered Probit Switching Regression Models in R (source, R code)

Downloads:

Package source: OPSR_1.0.0.tar.gz
Windows binaries: r-devel: OPSR_0.1.2.zip, r-release: OPSR_0.1.2.zip, r-oldrel: OPSR_0.1.2.zip
macOS binaries: r-release (arm64): OPSR_1.0.0.tgz, r-oldrel (arm64): OPSR_1.0.0.tgz, r-release (x86_64): OPSR_1.0.0.tgz, r-oldrel (x86_64): OPSR_1.0.0.tgz
Old sources: OPSR archive

Linking:

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