is_model | R Documentation |
Small helper that checks if a model is a regression model or
a statistical object. is_regression_model()
is stricter and only
returns TRUE
for regression models, but not for, e.g., htest
objects.
is_model(x)
is_regression_model(x)
x |
An object. |
This function returns TRUE
if x
is a model object.
A logical, TRUE
if x
is a (supported) model object.
data(mtcars)
m <- lm(mpg ~ wt + cyl + vs, data = mtcars)
is_model(m)
is_model(mtcars)
test <- t.test(1:10, y = c(7:20))
is_model(test)
is_regression_model(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.