Description Usage Arguments Examples
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
1 | linear_model(form, data, contrasts = NULL)
|
form |
A given formula for fitting the regression. |
data |
A given dataset to fit the model. |
contrasts |
a list of constasts for factor variables. |
1 2 3 | library(palmerpenguins)
data(penguins)
my_fit = linear_model(bill_length_mm ~ ., data = penguins[,-8])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.