# Treatment Switching

## Documentation for package ‘trtswitch’ version 0.2.2

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

trtswitch-package | Treatment Switching
adsl | Baseline subject-level data
adtdc | Longitudinal time-dependent covariate data
aml | Acute myelogenous leukemia survival data from the survival package
bscpp | B-Spline Basis for Polynomial Splines
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).
ipcw | Inverse Probability of Censoring Weights (IPCW) for Treatment Switching
ipe | Iterative Parameter Estimation (IPE) for Treatment Switching
kmdiff | Estimate of Milestone Survival Difference
kmest | Kaplan-Meier Estimates of Survival Curve
liferegr | Parametric Regression Models for Failure Time Data
logisregr | Logistic Regression Models for Binary Data
lrtest | Log-Rank Test of Survival Curve Difference
msm | Marginal Structural Model (MSM) for Treatment Switching
nscpp | Natural Cubic Spline Basis
phregr | Proportional Hazards Regression Models
preptdc | Prepare Survival Data With Time-Dependent Covariates
qrcpp | QR Decomposition of a Matrix
rawdata | A simulated time-to-event data set with 10 replications
recensor_sim_rpsftm | Simulation Study to Evaluate Recensoring Rules in RPSFTM
residuals_liferegr | Residuals for Parametric Regression Models for Failure Time Data
residuals_phregr | Residuals for Proportional Hazards Regression Models
rmdiff | Estimate of Restricted Mean Survival Time Difference
rmest | Estimate of Restricted Mean Survival Time
rpsftm | Rank Preserving Structural Failure Time Model (RPSFTM) for Treatment Switching
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).
splineDesigncpp | B-Spline Design Matrix
survfit_phregr | Survival Curve for Proportional Hazards Regression Models
survQuantile | Brookmeyer-Crowley Confidence Interval for Quantiles of Right-Censored Time-to-Event Data
tobin | Tobin's tobit data from the survival package
tsegest | Two-Stage Estimation with g-Estimation (TSEgest) for Treatment Switching
tsegestsim | Simulate Survival Data for Two-Stage Estimation with g-estimation
tsesimp | Simple Two-Stage Estimation (TSEsimp) for Treatment Switching
tssim | Simulate Data for Treatment Switching