Learn R Programming

survMisc (version 0.2)

calcSurv: Estimators of survival & hazard functions with variance for a Surv object describing right censored data

Description

Estimators of survival & hazard functions with variance for a Surv object describing right censored data

Usage

calcSurv(s)

Arguments

s
A Surv object

Value

  • A data frame. Rows - one for each time where an event occurs. Columns are:
  • ttime
  • nno. at risk
  • eno. events
  • KMSurvival estimate by Kaplan-Meier (Product-Limit) estimator
  • KMVVariance of Kaplan-Meier estimate (Greenwoods formula)
  • SNelSurvival estimate from Nelson-Aalen estimator: $\hat{S}=e^{\hat{H}}$
  • HNelNelson-Aalen estimate of hazard function
  • HNelVVariance of Nelson-Aalen estimate
  • HKMHazard estimate from Kaplan-Meier estimator: $\hat{H}=-log{\hat{S} }$

Details

Calculates survival estimates with variance.

See Also

calls tneSurv calls functions documented in survEst

Examples

Run this code
data(bmt, package="KMsurv")
b1 <- bmt[bmt$group==1, ] # ALL patients
s1 <- Surv(time=b1$t2, event=b1$d3)
calcSurv(s1)

Run the code above in your browser using DataLab