rsmatch: Matching Methods for Time-Varying Observational Studies

Implements popular methods for matching in time-varying observational studies. Matching is difficult in this scenario because participants can be treated at different times which may have an influence on the outcomes. The core methods include: "Balanced Risk Set Matching" from Li, Propert, and Rosenbaum (2011) <doi:10.1198/016214501753208573> and "Propensity Score Matching with Time-Dependent Covariates" from Lu (2005) <doi:10.1111/j.1541-0420.2005.00356.x>. Some functions use the 'Gurobi' optimization back-end to improve the optimization problem speed; the 'gurobi' R package and associated software can be downloaded from <> after obtaining a license.

Version: 0.2.1
Depends: R (≥ 2.10)
Imports: dplyr, MASS, Matrix, stats
Suggests: gurobi, knitr, nbpMatching, Rglpk, rlang, rmarkdown, survival, testthat
Published: 2024-02-20
DOI: 10.32614/CRAN.package.rsmatch
Author: Sean Kent ORCID iD [aut, cre, cph], Mitchell Paukner ORCID iD [aut, cph]
Maintainer: Sean Kent <skent259 at>
License: MIT + file LICENSE
NeedsCompilation: no
Citation: rsmatch citation info
Materials: README NEWS
CRAN checks: rsmatch results


Reference manual: rsmatch.pdf
Vignettes: Risk Set Matching with rsmatch


Package source: rsmatch_0.2.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): rsmatch_0.2.1.tgz, r-oldrel (arm64): rsmatch_0.2.1.tgz, r-release (x86_64): rsmatch_0.2.1.tgz, r-oldrel (x86_64): rsmatch_0.2.1.tgz
Old sources: rsmatch archive


Please use the canonical form to link to this page.