Gt: The Kaplan-Meier Estimate of the Censoring Distribution

View source: R/Gt.R

GtR Documentation

The Kaplan-Meier Estimate of the Censoring Distribution

Description

G(t)=P(C>t) denote the Kaplan-Meier estimate of the censoring distribution which is used to adjust for censoring. Gt is used to calculate G(t) at any timepoint you want.

Usage

Gt(object, timepoint)

Arguments

object

object of class Surv created by Surv function.

timepoint

any point in time you want to get the Kaplan–Meier estimate of the censoring.

Value

The Kaplan–Meier estimate of the censoring distribution and the value of G(t) is between 0 and 1.

Author(s)

Hanpu Zhou zhouhanpu@csu.edu.cn

References

Graf, Erika, Schmoor, Claudia, Sauerbrei, & Willi, et al. (1999). Assessment and comparison of prognostic classification schemes for survival data. Statist. Med., 18(1718), 2529-2545.

Kaplan, E. L. , & Meier, P. . (1958). Nonparametric estimation from incomplete observations. Journal of the American Statistical Association, 53, 457-481.

Examples

library(survival)
time <- rexp(50)
status <- sample(c(0, 1), 50, replace = TRUE)
pre_sp <- runif(50)
timepoint <- runif(1)
Gt(Surv(time, status), timepoint)


SurvMetrics documentation built on Sept. 4, 2022, 1:06 a.m.