R/get_predictions_zelig.R

Defines functions get_predictions_zelig

get_predictions_zelig <- function(model, fitfram, ci.lvl, linv, ...) {

  insight::format_error("`predict_response()` does currently not support Zelig-models.")

  # does user want standard errors?
  se <- !is.null(ci.lvl) && !is.na(ci.lvl)

  # compute ci, two-ways
  if (!is.null(ci.lvl) && !is.na(ci.lvl))
    ci <- (1 + ci.lvl) / 2
  else
    ci <- 0.975

  # prediction, with CI
  # prdat <-
  #   Zelig::predict(
  #     model,
  #     newdata = fitfram,
  #     interval = se,
  #     level = ci,
  #     ...
  #   )

  NULL
}
strengejacke/ggeffects documentation built on May 1, 2024, 9:30 a.m.