Description Usage Arguments Value Examples
Implement a linear regression based on given model and data.
1 | linear_model(formula, data, contrasts = NULL)
|
formula |
A symbolic description of the model to be fitted. This should be a formula class argument. |
data |
Specification of a dataframe that contains the variables in the model. |
contrasts |
A list of contrasts. |
A list of component that imitates the output of lm() function. Including estimated coefficients for predictors specified in the formula.
1 2 | data(iris)
linear_model(Sepal.Length ~ ., iris, contrasts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.