get_predictions_zelig <- function(model, fitfram, ci.lvl, linv, ...) {
stop("`ggpredict()` does currently not support Zelig-models.", call. = FALSE)
# 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 <- .975
# prediction, with CI
# prdat <-
# Zelig::predict(
# model,
# newdata = fitfram,
# interval = se,
# level = ci,
# ...
# )
NULL
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.