Description Usage Arguments Value Examples
This function fits linear models by calculating regressions.
1 | linear_model(form, d, contrasts = NULL)
|
form |
linear model formula |
d |
data frame |
contrasts |
optional list of constants for factor variables aka contrast |
the best-fit coefficients for linear regression
1 2 3 4 | data(iris)
linear_model(Sepal.Length ~ ., iris)
linear_model(Sepal.Length ~ ., iris,
contrasts = list(Species = "contr.sum"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.