plot.SurvCF: plot.SurvCF

Description Usage Arguments Examples

Description

Plots a SurvCF object using GGally and some default settings.

Usage

1
2
## S3 method for class 'SurvCF'
plot(x)

Arguments

x

An SurvCF object created with SurvCF()

Examples

1
2
3
4
5
6
sim.df <- simStudy()
x <- SurvExt(Surv(os.t, os.e) ~ I(x.trt==1),
   Exposure = ifelse(x.trt == 1, os.t, ifelse(x.switch == 1, os.t - t.switch, 0)),
   AdminCensTime = t.censor,
   data = sim.df)
plot(x)

iain-t-bennett/SwitchPack documentation built on May 16, 2019, 11:07 a.m.