R/get_predictions_bamlss.R

Defines functions get_predictions_bamlss

get_predictions_bamlss <- function(model, data_grid, linv, ...) {
  prdat <- suppressMessages(stats::predict(
    object = model,
    newdata = data_grid,
    model = "mu",
    type = "link"
  ))

  data_grid$predicted <- linv(as.vector(prdat))
  data_grid$conf.low <- NA
  data_grid$conf.high <- NA

  data_grid
}

Try the ggeffects package in your browser

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

ggeffects documentation built on Sept. 12, 2024, 7:41 a.m.