Learn R Programming

trtswitch (version 0.1.6)

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

564

Version

0.1.6

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kaifeng Lu

Last Published

April 25th, 2025

Functions in trtswitch (0.1.6)

print.logisregr

Print logisregr Object
liferegr

Parametric Regression Models for Failure Time Data
phregr

Proportional Hazards Regression Models
logisregr

Logistic Regression Models for Binary Data
lrtest

Log-Rank Test of Survival Curve Difference
qrcpp

QR Decomposition of a Matrix
nscpp

Natural Cubic Spline Basis
print.phregr

Print phregr Object
print.liferegr

Print liferegr Object
rawdata

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

Brookmeyer-Crowley Confidence Interval for Quantiles of Right-Censored Time-to-Event Data
residuals_phregr

Residuals for Proportional Hazards Regression Models
rmest

Estimate of Restricted Mean Survival Time
six

The repeated measures data from the "Six Cities" study of the health effects of air pollution (Ware et al. 1984).
survfit_phregr

Survival Curve for Proportional Hazards Regression Models
rmdiff

Estimate of Restricted Mean Survival Time Difference
sexagg

Urinary tract infection data from the logistf package
rpsftm

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

The randomized clinical trial SHIVA data in long format from the ipcwswitch package
splineDesigncpp

B-Spline Design Matrix
tsesimp

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

Simulate Survival Data for Two-Stage Estimation Method Using g-estimation
trtswitch-package

Treatment Switching
tsegest

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

Split a survival data set at specified cut points
tobin

Tobin's tobit data from the survival package
immdef

Simulated CONCORDE trial data from the rpsftm package
bscpp

B-Spline Basis for Polynomial Splines
aml

Acute myelogenous leukemia survival data from the survival package
ingots

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

Find Interval Numbers of Indices
ipe

Iterative Parameter Estimation (IPE) for Treatment Switching
ipcw

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

Stanford heart transplant data from the survival package
kmdiff

Estimate of Milestone Survival Difference
kmest

Kaplan-Meier Estimates of Survival Curve