R/get_predictions_vgam.R

Defines functions get_predictions_vgam

get_predictions_vgam <- function(model, fitfram, ci.lvl, linv, ...) {
  prdat <- stats::predict(
    model,
    newdata = fitfram,
    type = "link",
    se.fit = FALSE
  )

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

  fitfram
}
javifar/ggeffects documentation built on Jan. 21, 2022, 12:04 a.m.