Package: trtswitch 0.1.2

Kaifeng Lu

trtswitch: Treatment Switching

Implements rank-preserving structural failure time model (RPSFTM), iterative parameter estimation (IPE), inverse probability of censoring weights (IPCW), and two-stage estimation (TSE) methods for treatment switching in randomized clinical trials.

Authors:Kaifeng Lu [aut, cre]

trtswitch_0.1.2.tar.gz
trtswitch_0.1.2.tar.gz(r-4.5-noble)trtswitch_0.1.2.tar.gz(r-4.4-noble)
trtswitch_0.1.2.tgz(r-4.4-emscripten)trtswitch_0.1.2.tgz(r-4.3-emscripten)
trtswitch.pdf |trtswitch.html
trtswitch/json (API)
NEWS

# Install 'trtswitch' in R:
install.packages('trtswitch', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • aml - Acute myelogenous leukemia survival data from the survival package
  • heart - Stanford heart transplant data from the survival package
  • immdef - Simulated CONCORDE trial data from the rpsftm package
  • ingots - The binary data from Cox and Snell (1989, pp. 10-11).
  • rawdata - A simulated time-to-event data set with 10 replications
  • sexagg - Urinary tract infection data from the logistf package
  • shilong - The randomized clinical trial SHIVA data in long format from the ipcwswitch package
  • six - The repeated measures data from the "Six Cities" study of the health effects of air pollution (Ware et al. 1984).
  • tobin - Tobin's tobit data from the survival package

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

3.22 score 1 stars 11 scripts 496 downloads 21 exports 1 dependencies

Last updated 21 days agofrom:19b8156110. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 05 2024
R-4.5-linux-x86_64OKDec 05 2024

Exports:bscppfindInterval3ipcwipekmestliferegrlogisregrlrtestnscppphregrqrcppresiduals_phregrrmdiffrmestrpsftmsplineDesigncppsurvfit_phregrsurvsplittsegesttsegestsimtsesimp

Dependencies:Rcpp

Inverse Probability of Censoring Weights

Rendered fromipcw.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-12-05
Started: 2024-11-02

Iterative Parameter Estimation

Rendered fromipe.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-12-05
Started: 2024-11-02

Rank Preserving Structural Failure Time Models

Rendered fromrpsftm.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-12-05
Started: 2024-11-02

Simple Two-Stage Estimation

Rendered fromtsesimp.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-11-02
Started: 2024-11-02

Two-Stage Estimation With g-estimation

Rendered fromtsegest.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-12-05
Started: 2024-11-02

Readme and manuals

Help Manual

Help pageTopics
Treatment Switchingtrtswitch-package
Acute myelogenous leukemia survival data from the survival packageaml
B-Spline Basis for Polynomial Splinesbscpp
Stanford heart transplant data from the survival packageheart
Simulated CONCORDE trial data from the rpsftm packageimmdef
The binary data from Cox and Snell (1989, pp. 10-11).ingots
Inverse Probability of Censoring Weights (IPCW) Method for Treatment Switchingipcw
Iterative Parameter Estimation (IPE) for Treatment Switchingipe
Kaplan-Meier Estimates of Survival Curvekmest
Parametric Regression Models for Failure Time Dataliferegr
Logistic Regression Models for Binary Datalogisregr
Log-Rank Test of Survival Curve Differencelrtest
Natural Cubic Spline Basisnscpp
Proportional Hazards Regression Modelsphregr
QR Decomposition of a Matrixqrcpp
A simulated time-to-event data set with 10 replicationsrawdata
Residuals for Proportional Hazards Regression Modelsresiduals_phregr
Estimate of Restricted Mean Survival Time Differencermdiff
Estimate of Restricted Mean Survival Timermest
Rank Preserving Structural Failure Time Model (RPSFTM) for Treatment Switchingrpsftm
Urinary tract infection data from the logistf packagesexagg
The randomized clinical trial SHIVA data in long format from the ipcwswitch packageshilong
The repeated measures data from the "Six Cities" study of the health effects of air pollution (Ware et al. 1984).six
B-Spline Design MatrixsplineDesigncpp
Survival Curve for Proportional Hazards Regression Modelssurvfit_phregr
Tobin's tobit data from the survival packagetobin
The Two-Stage Estimation (TSE) Method Using g-estimation for Treatment Switchingtsegest
Simulate Survival Data for Two-Stage Estimation Method Using g-estimationtsegestsim
The Simple Two-Stage Estimation (TSE) Method for Treatment Switchingtsesimp