insight (version 0.11.0)

is_model: Checks if an object is a regression model object

Description

Small helper that checks if a model is a regression model object.

Usage

is_model(x)

Arguments

x

An object.

Value

A logical, TRUE if x is a (supported) model object.

Details

This function returns TRUE if x is a model object.

Examples

Run this code
# NOT RUN {
data(mtcars)
m <- lm(mpg ~ wt + cyl + vs, data = mtcars)

is_model(m)
is_model(mtcars)
# }

Run the code above in your browser using DataLab