Package: OPSR 1.0.1

Daniel Heimgartner

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>.

Authors:Daniel Heimgartner [aut, cre, cph], Xinyi Wang [aut]

OPSR_1.0.1.tar.gz
OPSR_1.0.1.tar.gz(r-4.7-arm64)OPSR_1.0.1.tar.gz(r-4.7-x86_64)OPSR_1.0.1.tar.gz(r-4.6-arm64)OPSR_1.0.1.tar.gz(r-4.6-x86_64)
OPSR_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
OPSR/json (API)
NEWS

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

Bug tracker:https://github.com/dheimgartner/opsr/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

openblascppopenmp

3.00 score 4 scripts 177 downloads 12 exports 82 dependencies

Last updated from:8e2d95a296. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK183
linux-devel-x86_64OK188
source / vignettesOK463
linux-release-arm64OK274
linux-release-x86_64OK165
wasm-releaseOK204

Exports:loglik_cppopsropsr_2stepopsr_check_ompopsr_check_startopsr_max_threadsopsr_null_modelopsr_prepare_coefsopsr_simulateopsr_stepopsr_teopsr.fit

Dependencies:abindaskpassbackportsbootbroomcarcarDataclicolorspacecowplotcpp11curlDerivdigestdoBydplyrfarverforecastFormulafracdiffgenericsggplot2gluegtablehttrisobandjsonlitelabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmaxLikmgcvmicrobenchmarkmimeminqamiscToolsmodelrmvtnormnlmenloptrnnetnumDerivopensslpbkrtestpillarpkgconfigpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7sandwichscalesSparseMstringistringrsurvivalsystexregtibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo

OPSR: A Package for Estimating Ordered Probit Switching Regression Models in R

Rendered fromopsr.Rnwusingutils::Sweaveon Jun 10 2026.

Last update: 2025-07-28
Started: 2025-07-07

Readme and manuals