View source: R/ols-model-info.R
| ols_has_intercept | R Documentation |
Checks if model has an intercept.
ols_has_intercept(model)
model |
An object of class |
TRUE if model has an intercept, FALSE otherwise.
model <- lm(mpg ~ wt + cyl + hp + disp + gear + drat, data = mtcars)
ols_has_intercept(model)
model <- lm(mpg ~ 0 + wt + cyl + hp + disp + gear + drat, data = mtcars)
ols_has_intercept(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.