R/get_predictions_bayesx.R

Defines functions get_predictions_bayesx

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

  data_grid$predicted <- 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.