Predict model using marginaleffects::predictions function.

predic_model(data_source, model_source, exclude_var = NULL)

Arguments

data_source

Data.frame with values to be predicted upon

model_source

Selected model. Can be any of supported models by marginaleffects

exclude_var

Vector with terms to exclude. This is used only for gam models