Gt | R Documentation |
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.
Gt(object, timepoint)
object |
object of class |
timepoint |
any point in time you want to get the Kaplan–Meier estimate of the censoring. |
The Kaplan–Meier estimate of the censoring distribution and the value of G(t) is between 0 and 1.
Hanpu Zhou zhouhanpu@csu.edu.cn
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.