trtswitch
0.2.7Treatment Switching
Overview
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 estimation with g-estimation (TSEgest) methods for treatment switching in randomized clinical trials.
Install
Health
- OK2026-08-0413 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-04-2212 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1811 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 96%
- Documented parameters
- 99%
- Return-value docs
- 100%
- References docs
- 30%
Downloads
Repository
Stars over time
Forks over time
Issues over time
Repository practices
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/kaifenglu/trtswitch on 2026-08-09.
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
18 releases. Pick two to compare their code metrics. R releases are shown for context.
- 0.2.7Latest
- 0.2.62026-05-27 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.2.52026-03-14 · diff ↗
- 0.2.42026-02-12 · diff ↗
- 0.2.32026-01-10 · diff ↗
- 0.2.22025-11-16 · diff ↗
- 0.2.12025-11-06 · diff ↗
- 0.2.02025-10-06 · diff ↗
- 0.1.92025-09-03 · diff ↗
- 0.1.82025-07-12 · diff ↗
- 0.1.72025-06-05 · diff ↗
- 0.1.62025-04-25 · diff ↗
- 0.1.52025-04-24 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.1.42025-03-20 · diff ↗
Package metadata
- First published
- 2024-10-17
- Total releases
- 18 / 2 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 140 KB / 12 files
- Download size
- 568 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("trtswitch")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-09, which the citation names so these numbers can be found later. More on citing and the projects behind them.