linear_model: linear_model

Description Usage Arguments Value Examples

View source: R/linear_model.R

Description

Compute a linear regression.

Usage

1
linear_model(form, dat, contrasts = NULL)

Arguments

form

A formula with the format of "Y ~ ."

dat

A dataframe.

contrasts

A list of contrasts.

Value

A list of coefficients from an linear regression model.

Examples

1
linear_model(Sepal.Length ~ ., iris, contrasts)

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