plot.trSurvfit: Plot the survival estimation based on the structural...

Description Usage Arguments Value Examples

View source: R/plot.trSurvfit.R

Description

Plot the survival estimation for an trSurvfit/trReg object.

Usage

1
2
## S3 method for class 'trSurvfit'
plot(x, ...)

Arguments

x

an object of class trSurvfit returned by the trSurvfit() or the trReg() function.

...

graphical parameters to be passed to methods.

Value

A ggplot object.

Examples

1
2
3
4
data(channing, package = "boot")
chan <- subset(channing, entry < exit)

plot(trReg(Surv(entry, exit, cens) ~ 1, data = chan))

tranSurv documentation built on Jan. 16, 2021, 5:31 p.m.