linear_model: Linear Model

Description Usage Arguments Examples

View source: R/linear_model.R

Description

This is a function takes a formula and a dataset as input, fit a linear model based on the input and returns a list of coefficients

Usage

1

Arguments

form

A given formula for fitting the regression.

data

A given dataset to fit the model.

contrasts

a list of constasts for factor variables.

Examples

1
2
3
library(palmerpenguins)
data(penguins)
my_fit = linear_model(bill_length_mm ~ ., data = penguins[,-8])

nixgank-wang/bis557 documentation built on Dec. 26, 2020, 9:54 p.m.