Learn R Programming

marginaleffects (version 0.4.1)

sanity_model_specific: Method to raise model-specific warnings and errors

Description

Method to raise model-specific warnings and errors

Usage

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, ...)

Arguments

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.

Value

A warning, an error, or nothing