is_model_supported {insight} | R Documentation |
Checks if a regression model object is supported by the insight package
Description
Small helper that checks if a model is a supported
(regression) model object. supported_models()
prints a list
of currently supported model classes.
Usage
is_model_supported(x)
supported_models()
Arguments
x |
An object. |
Details
This function returns TRUE
if x
is a model object that works with the
package's functions. A list of supported models can also be found here:
https://github.com/easystats/insight.
Value
A logical, TRUE
if x
is a (supported) model object.
Examples
data(mtcars)
m <- lm(mpg ~ wt + cyl + vs, data = mtcars)
is_model_supported(m)
is_model_supported(mtcars)
# to see all supported models
supported_models()
[Package insight version 0.20.2 Index]