ols_get_intercept: Model intercept

View source: R/ols-model-info.R

ols_get_interceptR Documentation

Model intercept

Description

Returns the value of the model intercept.

Usage

ols_get_intercept(model)

Arguments

model

An object of class lm.

Value

The value of the intercept.

Examples

model <- lm(mpg ~ wt + cyl + hp + disp + gear + drat, data = mtcars)
ols_get_intercept(model)

model <- lm(mpg ~ 0 + wt + cyl + hp + disp, data = mtcars)
ols_get_intercept(model)


olsrr documentation built on Nov. 18, 2026, 5:07 p.m.