R/predictProb.survfit.R

predictProb.survfit <- function (object, response, x, times, train.data=NULL, ...){
   km.pred <- matrix(summary(object, times=times)$surv, nrow(x), length(times),byrow=TRUE)  
}

Try the peperr package in your browser

Any scripts or data that you put into this service are public.

peperr documentation built on March 31, 2023, 7:34 p.m.