R/predictProb.penfit.R

Defines functions predictProb.penfit

Documented in predictProb.penfit

predictProb.penfit <- function(object, response, x, times, complexity = NULL, ...) {
   .require_suggested_package("penalized", "predictProb.penfit()")

   breslow <- methods::getMethod("predict", "penfit")(
      object,
      penalized = x,
      data = as.data.frame(x),
      ...
   )

   .peperr_step_curve_matrix(
      curves = breslow@curves,
      curve_times = breslow@time,
      eval_times = times
   )
}

Try the peperr package in your browser

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

peperr documentation built on March 25, 2026, 9:06 a.m.