Learn R Programming

jackknifeKME (version 1.0)

kmweight: Compute Kaplan-Meier weights

Description

The Kaplan-Meier weights are the mass attached to the uncensored observations. The weights are used to account for censoring into the calculation for many methods. For example, in the Stute's weighted least squares method (Stute and Wang, 1994)) that is applied for censored data.

Usage

kmweight(Y, delta)

Arguments

Y
survival time.
delta
status

Value

  • kmwtsKaplan-Meier weights

References

Stute, W. and Wang, J. (1994). The jackknife estimate of a Kaplan-Meier integral. Biometrika 81, 602-606.

Examples

Run this code
#Using simdata function. Censoring level is 50\%.
data<-simdata(n = 100,lambda = 2.04) 
kmw<-kmweight(data$Y, data$delta)
kmw

Run the code above in your browser using DataLab