Learn R Programming

⚠️There's a newer version (0.1.4) of this package.Take me there.

trtswitch (version 0.1.3)

Treatment Switching

Description

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.

Copy Link

Version

Install

install.packages('trtswitch')

Monthly Downloads

384

Version

0.1.3

License

GPL (>= 2)

Maintainer

Kaifeng Lu

Last Published

February 6th, 2025

Functions in trtswitch (0.1.3)

heart

Stanford heart transplant data from the survival package
kmest

Kaplan-Meier Estimates of Survival Curve
kmdiff

Estimate of Milestone Survival Difference
findInterval3

Find Interval Numbers of Indices
nscpp

Natural Cubic Spline Basis
qrcpp

QR Decomposition of a Matrix
lrtest

Log-Rank Test of Survival Curve Difference
print.logisregr

Print logisregr Object
rawdata

A simulated time-to-event data set with 10 replications
phregr

Proportional Hazards Regression Models
logisregr

Logistic Regression Models for Binary Data
liferegr

Parametric Regression Models for Failure Time Data
print.phregr

Print phregr Object
print.liferegr

Print liferegr Object
splineDesigncpp

B-Spline Design Matrix
survfit_phregr

Survival Curve for Proportional Hazards Regression Models
residuals_phregr

Residuals for Proportional Hazards Regression Models
rmdiff

Estimate of Restricted Mean Survival Time Difference
rmest

Estimate of Restricted Mean Survival Time
survsplit

Split a survival data set at specified cut points
rpsftm

Rank Preserving Structural Failure Time Model (RPSFTM) for Treatment Switching
tsegestsim

Simulate Survival Data for Two-Stage Estimation Method Using g-estimation
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).
sexagg

Urinary tract infection data from the logistf package
tsegest

The Two-Stage Estimation (TSE) Method Using g-estimation for Treatment Switching
trtswitch-package

Treatment Switching
tsesimp

The Simple Two-Stage Estimation (TSE) Method for Treatment Switching
tobin

Tobin's tobit data from the survival package
ipcw

Inverse Probability of Censoring Weights (IPCW) Method for Treatment Switching
immdef

Simulated CONCORDE trial data from the rpsftm package
ipe

Iterative Parameter Estimation (IPE) for Treatment Switching
bscpp

B-Spline Basis for Polynomial Splines
ingots

The binary data from Cox and Snell (1989, pp. 10-11).
aml

Acute myelogenous leukemia survival data from the survival package