intercept: Get the intercept of a model

Description Usage Arguments Details Value Examples

View source: R/intercept.R

Description

The function returns the value of the beta coeffcient of the model's intercept.

Usage

1
intercept(model)

Arguments

model

a model object.

Details

model is an object returned by a model fitting function (e.g., lm, aov).

If the model was fitted without an intercept, the function returns 0 and generates a warning message.

Value

a length-one numeric vector.

Examples

1
2
3
4
5
6
require(utils)
 
data(iris)
fit <- lm(Sepal.Length ~ Sepal.Width * Petal.Length * Petal.Width, data = iris)
summary(fit)
remef:::intercept(fit)

hohenstein/remef documentation built on Jan. 26, 2020, 12:57 a.m.