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.
| Version: | 0.2.0 | 
| Depends: | R (≥ 2.10) | 
| Imports: | Rcpp (≥ 1.0.9), data.table (≥ 1.14.10) | 
| LinkingTo: | Rcpp | 
| Suggests: | testthat (≥ 3.0.0), dplyr (≥ 1.1.4), tidyr (≥ 1.3.1), survival (≥ 3.5-7), ggplot2 (≥ 3.3.6), knitr (≥ 1.45), rmarkdown (≥ 2.25) | 
| Published: | 2025-10-06 | 
| DOI: | 10.32614/CRAN.package.trtswitch | 
| Author: | Kaifeng Lu | 
| Maintainer: | Kaifeng Lu <kaifenglu at gmail.com> | 
| BugReports: | https://github.com/kaifenglu/trtswitch/issues | 
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] | 
| URL: | https://github.com/kaifenglu/trtswitch | 
| NeedsCompilation: | yes | 
| Materials: | NEWS | 
| CRAN checks: | trtswitch results | 
| Package source: | trtswitch_0.2.0.tar.gz | 
| Windows binaries: | r-devel: trtswitch_0.2.0.zip, r-release: trtswitch_0.2.0.zip, r-oldrel: trtswitch_0.2.0.zip | 
| macOS binaries: | r-release (arm64): trtswitch_0.2.0.tgz, r-oldrel (arm64): trtswitch_0.2.0.tgz, r-release (x86_64): trtswitch_0.2.0.tgz, r-oldrel (x86_64): trtswitch_0.2.0.tgz | 
| Old sources: | trtswitch archive | 
Please use the canonical form https://CRAN.R-project.org/package=trtswitch to link to this page.