Description Usage Arguments Value Examples
This a function to fit the linear model.
1 | linear_model(formula, data_frame, contrasts = NULL)
|
formula |
The formula of the regression model to be fitted. |
data_frame |
A data frame which contains the data for the model. |
contrasts |
A list of contrasts for factor variables. |
A list of estimated coefficients.
1 2 3 | data(iris)
model <- linear_model(Sepal.Length ~., iris, contrasts = list(Species = "contr.sum"))
model$coefficients
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.