cumhaz.var: Variance of the cumulative-hazard function

Description Usage Arguments Value Examples

View source: R/package_functions.R

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)

optband documentation built on May 29, 2017, 7:08 p.m.

Search within the optband package
Search all R packages, documentation and source code