Learn R Programming

SurvMetrics (version 0.5.1)

Gt: Gt

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)

Value

The Kaplan–Meier estimate of the censoring in (0,1).

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.

Author

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

Run this code
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)

Run the code above in your browser using DataLab