Variance of the cumulative-hazard function

Share:

Description

cumhaz.var estimates the cumulative-hazard function variance using Greenwood's formula for a survfit object containing estimated survival curves.

Usage

1
cumhaz.var(survi)

Arguments

survi

a survfit object.

Value

A numeric vector.

Examples

1
2
3
library(survival)
fit <- survfit(Surv(stop, event) ~ 1, data=bladder)
cumhaz.var(fit)