OPSR

A package for estimating ordered probit switching regression models in R


Loading...

Date

2025-07

Publication Type

Working Paper

ETH Bibliography

yes

Citations

Altmetric

Data

Abstract

This introduction to the R package OPSR is a (slightly) modified version of a submis sion to the Journal of Statistical Software. Selection bias may arise if unobserved factors simultaneously influence the selection process for who gets treated (or not), and the out come of (not) receiving the treatment. Different methods exist to correct for this bias depending on whether longitudinal or cross-sectional data is available. A possible cure in the latter case (where the counterfactual treatment outcome is never observed) is to ex plicitly account for the arising error correlation and estimate the covariance matrix of the selection and outcome processes. This is known as endogenous switching regression. The R package OPSR introduced in this article provides an easy-to-use, fast and memory effi cient interface to ordered probit switching regression, accounting for self-selection into an ordinal treatment. It handles log-transformed outcomes which need special consideration when computing conditional expectations and thus treatment effects. Besides the usual R modeling methods (update(), summary(), predict(), etc.) post-estimation routines to compute and visualize (weighted) treatment effects are available.

Publication status

published

External links

Editor

Book title

Volume

1907

Pages / Article No.

Publisher

IVT, ETH Zurich

Event

Edition / version

Methods

Software

Geographic location

Date collected

Date created

Subject

Ordered probit switching regression; Endogenous switching regression; Heckman selection; Selection bias; Treatment effect; R

Organisational unit

03521 - Axhausen, Kay W. (emeritus) / Axhausen, Kay W. (emeritus) check_circle
02655 - Netzwerk Stadt u. Landschaft ARCH u BAUG / Network City and Landscape ARCH and BAUG

Notes

Funding

Related publications and datasets