View source: R/jackknife-cuminc.R
leaveOneOut.survival | R Documentation |
For each subject, the survival function is recomputed leaving that subject out. This one does the calculation for all observed times, for calculation of the restricted mean
leaveOneOut.survival(object, times, mr)
object |
A survfit object, with a single event (no competing risks) |
times |
Compute values at observed times up to and including this time |
mr |
Model response, the result of a call to Surv, or a matrix with two columns: "time" (observed follow up time) and "status" (0 = censored, 1 = event) |
A vector of jackknifed values of survival at time times
sfit.surv <- survival::survfit(survival::Surv(time, status) ~ 1, data = colon)
mrs <- with(colon, Surv(time, status))
jackvals <- leaveOneOut.survival(sfit.surv, 1000, mrs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.