plot.cum {eha}R Documentation

Plots of Cumulative Hazards Functions.

Description

Nelson-Aalen plots.

Usage

plot.cum(x, group=rep(1, length(exit)), 
main=NULL, xlab=NULL, ylab=NULL,
log.scale = FALSE, ...)

Arguments

x A Surv object.
group Defines a partition of the data. One survivor function for each level of group is drawn.
main Header of the plot.
xlab Label of the x axis.
ylab Label of the y axis.
log.scale If TRUE, plotting is done on a log-log scale. Default is FALSE
... 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

References

See Also

plot.Surv

Examples

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

[Package eha version 0.94-1 Index]