Skip to content

Ordered Probit Switching Regression

0packages depend
2.3Kdownloads / year
80.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.0.1
  • opsr_simulate() now takes seed argument to enable reproducibility.
  • plot.opsr() and opsr_te() define type arg list to behave similarly to predict.opsr().

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 8.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.1
READMEYes · 185 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.0.1Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
31 (1 internal)includes a package overview page
Examples that run
90%9 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
42%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
10% with a bibliography file

Downloads

2.3K
CRAN downloads in the past year
Rank #18,208 · ~6/day · ~192/mo
Daily download trend is not available in this view yet.
27330 days
70890 days
2.3K1 year
Compare downloads with other packages →
Also on357 r2u3 autocran

Repository

0Stars
1Forks
3Open issues
0Open PRs
3Releases
350Commits
4Commit identities
License file reads as GPL-3.0 · 350 commits · Last activity 2026-08-09 · Default branch at 1.0.1.9001, ahead of CRAN 1.0.1 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
0

Forks over time

2025-03-19 · 12026-07-07 · 1
PracticesBeta

6 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/dheimgartner/opsr on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)
README.Rmd
Reproducibility and dev environment (2)
data-raw/Makefile
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-06-09
    Seen in the repository: CLAUDE.md
    Pull request it wrote: opened by a project member
    Commits: at least 15 crediting it in the message
Models named in its commits
  • Claude Sonnet 4.610 commits · Jun 2026
  • Claude Sonnet 54 commits · Aug 2026
  • Claude Fable 51 commit · Aug 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing OPSR adds 73 packages (40 with compiled code, 61 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, doBy 4.3 MB.

Depends (1)
R >= 3.5.0
Imports (13)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.1.2 (2024), Copyright holder
Author
Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.1Latest
    record
    2025-07-28 · current release · diff ↗
  • 1.0.0
    record
    2025-07-07 · diff ↗ ·
    added 2 exports
    opsr_step, opsr_te
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.2
    record
    2024-11-01
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-11-01
Total releases
3 / 2 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Bundled data
147 KB / 2 files
Download size
1.0 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("OPSR")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.3929/ethz-b-000729641, 10.1016/j.tra.2024.104072.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for OPSR version 1.0.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy