trtswitch: Treatment Switching

Implements rank-preserving structural failure time model (RPSFTM), iterative parameter estimation (IPE), inverse probability of censoring weights (IPCW), marginal structural model (MSM), simple two-stage estimation (TSEsimp), and improved two-stage with g-estimation (TSEgest) methods for treatment switching in randomized clinical trials.

Package details

AuthorKaifeng Lu [aut, cre] (ORCID: <https://orcid.org/0000-0002-6160-7119>)
MaintainerKaifeng Lu <kaifenglu@gmail.com>
LicenseGPL (>= 2)
Version0.2.0
URL https://github.com/kaifenglu/trtswitch
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("trtswitch")

Try the trtswitch package in your browser

Any scripts or data that you put into this service are public.

trtswitch documentation built on Nov. 5, 2025, 7:08 p.m.