Method to raise model-specific warnings and errors
sanity_model_specific(model, calling_function = "marginaleffects", ...)# S3 method for default
sanity_model_specific(model, calling_function = "marginaleffects", ...)
# S3 method for multinom
sanity_model_specific(model, calling_function = "marginaleffects", ...)
# S3 method for brmsfit
sanity_model_specific(model, ...)
# S3 method for mblogit
sanity_model_specific(model, calling_function = "marginaleffects", ...)
# S3 method for plm
sanity_model_specific(model, ...)
# S3 method for rqs
sanity_model_specific(model, ...)
# S3 method for lmRob
sanity_model_specific(model, ...)
Model object
Additional arguments are passed to the predict()
method used to
compute adjusted predictions. These arguments are particularly useful for
mixed-effects or bayesian models (see the online vignettes on the
marginaleffects
website). Available arguments can vary from model to
model, depending on the range of supported arguments by each modeling
package. See the "Model-Specific Arguments" section of the
?marginaleffects
document for a non-exhaustive list of available
arguments.
A warning, an error, or nothing