linear_model: Fit a linear model.

Description Usage Arguments Value Examples

View source: R/linear_model.R

Description

This a function to fit the linear model.

Usage

1

Arguments

formula

The formula of the regression model to be fitted.

data_frame

A data frame which contains the data for the model.

contrasts

A list of contrasts for factor variables.

Value

A list of estimated coefficients.

Examples

1
2
3
data(iris)
model <- linear_model(Sepal.Length ~., iris, contrasts = list(Species = "contr.sum"))
model$coefficients

lyran92/bis557 documentation built on Dec. 21, 2020, 10:03 p.m.