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 May 2, 2019, 4:08 a.m.