plotsurvdef: Plots two survival distributions.

View source: R/plotsurvdef.R

plotsurvdefR Documentation

Plots two survival distributions.

Description

Plots two survival distributions.

Usage

plotsurvdef(survdefC, survdefT, xupper)

Arguments

survdefC

the survival distribution of the control group (will be plotted as a solid line), as a list in the form output by survdef.

survdefT

the survival distribution of the control group (will be plotted as a dashed line), as a list in the form output by survdef.

xupper

the upper x axis limit for the plot.

Examples

RIC<-survdef(times = 18, surv = .6)
MAC<-survdef(times = 3, haz=c(4.375*RIC$h(1),RIC$h(1)))
plotsurvdef(RIC, MAC, 24)

anneae/RMSTdesign documentation built on Nov. 7, 2023, 1:59 a.m.