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)


seasamgo/optband documentation built on April 23, 2023, 1:08 p.m.