trtswitch0.2.2 package

Treatment Switching

lrtest

Log-Rank Test of Survival Curve Difference

msm

Marginal Structural Model (MSM) for Treatment Switching

print.ipcw

Print method for ipcw objects

print.ipe

Print method for ipe objects

print.liferegr

Print liferegr Object

print.logisregr

Print logisregr Object

print.msm

Print method for msm objects

print.phregr

Print phregr Object

print.rpsftm

Print method for rpsftm objects

print.tsegest

Print method for tsegest objects

print.tsesimp

Print method for tsesimp objects

qrcpp

QR Decomposition of a Matrix

recensor_sim_rpsftm

Simulation Study to Evaluate Recensoring Rules in RPSFTM

residuals_liferegr

Residuals for Parametric Regression Models for Failure Time Data

preptdc

Prepare Survival Data With Time-Dependent Covariates

bscpp

B-Spline Basis for Polynomial Splines

findInterval3

Find Interval Numbers of Indices

ipcw

Inverse Probability of Censoring Weights (IPCW) for Treatment Switchin...

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

nscpp

Natural Cubic Spline Basis

phregr

Proportional Hazards Regression Models

plot.ipcw

Plot method for ipcw objects

plot.ipe

Plot method for ipe objects

plot.msm

Plot method for msm objects

plot.rpsftm

Plot method for rpsftm objects

plot.tsegest

Plot method for tsegest objects

plot.tsesimp

Plot method for tsesimp objects

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 S...

splineDesigncpp

B-Spline Design Matrix

survfit_phregr

Survival Curve for Proportional Hazards Regression Models

survQuantile

Brookmeyer-Crowley Confidence Interval for Quantiles of Right-Censored...

survsplit

Split a survival data set at specified cut points

trtswitch-package

Treatment Switching

tsegest

Two-Stage Estimation with g-Estimation (TSEgest) for Treatment Switchi...

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

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.

  • Maintainer: Kaifeng Lu
  • License: GPL (>= 2)
  • Last published: 2025-11-16