R/get_predictions_gee.R

Defines functions get_predictions_gee

get_predictions_gee <- function(model, terms, ...) {
  prdat <-
    stats::predict(
      model,
      type = "response",
      ...
    )

  mf <- insight::get_data(model)[, terms, drop = FALSE]

  # copy predictions
  mf$predicted <- as.vector(prdat)

  # No CI
  mf$conf.low <- NA
  mf$conf.high <- NA

  unique(mf)
}
javifar/ggeffects documentation built on Jan. 21, 2022, 12:04 a.m.