cumhaz.var: Variance of the cumulative-hazard function

View source: R/package_functions.R

cumhaz.varR Documentation

Variance of the cumulative-hazard function

Description

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

Usage

cumhaz.var(survi)

Arguments

survi

a survfit object.

Value

A numeric vector.

Examples


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


optband documentation built on April 1, 2023, 12:17 a.m.