R/PLL.ncvsurv.R

Defines functions PLL.ncvsurv

Documented in PLL.ncvsurv

PLL.ncvsurv <- function(object, newdata, newtime, newstatus, complexity = NULL, ...) {
   .require_suggested_package("ncvreg", "PLL.ncvsurv()")

   lambda <- .ncvsurv_lambda(object, complexity, "PLL.ncvsurv()")
   lp <- stats::predict(
      object,
      X = as.matrix(newdata),
      type = "link",
      lambda = lambda,
      ...
   )

   .peperr_pll_from_linear_predictor(
      linear.predictor = lp,
      time = newtime,
      status = newstatus
   )
}

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.