View source: R/sufficient_fu_test.R
sufficient_fu_test | R Documentation |
Tests for sufficient follow-up using a Kaplan-Meier fitted object.
sufficient_fu_test(object)
object |
a |
p.value |
p-value from testing the null hypothesis that there was not sufficient follow-up against the alternative that there was sufficient follow-up |
Nn |
total number of events that occurred at time > pmax(0, 2*(last observed event time)-(last observed time)) and < the last observed event time |
N |
number of observations in the dataset |
Maller, R. A. and Zhou, X. (1996) Survival Analysis with Long-Term Survivors. John Wiley & Sons.
survfit
, cure_estimate
, nonzerocure_test
library(survival)
set.seed(1234)
temp <- generate_cure_data(N = 100, J = 10, nTrue = 10, A = 1.8)
training <- temp$Training
km.fit <- survfit(Surv(Time, Censor) ~ 1, data = training)
sufficient_fu_test(km.fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.