plot.Surv {eha}R Documentation

Plots of survivor functions.

Description

Kaplan-Meier estimates. If only one curve, confidence limits according to Greenwood's formula are drawn.

Usage

plot.Surv(x, strata=rep(1, length(exit)), limits=FALSE, conf=0.95,
xlim = NULL, ylim = NULL, main="Survivor function(s)", 
xlab="Duration",
ylab="Remaining fraction", ...)

Arguments

x A Surv object.
strata Defines a partition of the data. One survivor function for each level of strata is drawn.
limits If TRUE, and if the number of curves is one, confidence limits are drawn.
conf The confidence level for the confidence limits.
xlim Horizontal plot limits. If NULL, calculated by the function.
ylim Vertical plot limits. If NULL, set to c(0, 1)
main A heading for the plot.
xlab Label on the x axis.
ylab Label on the y-axis.
... Anything that plot likes...

Details

Left truncation is allowed. Note, though, that this fact may result in strange estimated curves due to lack of data in certain (low) ages.

Value

No value is returned.

Author(s)

Göran Broström

See Also

plot.cum

Examples

time0 <- numeric(50)
group <- c(rep(0, 25), rep(1, 25))
time1 <- rexp( 50, exp(group) )
event <- rep(1, 50)
plot.Surv(Surv(time0, time1, event), strata = group)

[Package Contents]