View source: R/linear_regression.R
multiple_linear_regression | R Documentation |
This function computes coefficients for multiple regression by hand. All columns of the provided data frame are used as predictors, except the one specified as a response.
multiple_linear_regression(dat, response, method = NULL)
dat |
A data frame |
response |
The name of a response variable in the data frame (unquoted) |
method |
The method used to compute the coefficients (NULL, "qr", "gradientdescent") |
No interaction terms are included.
A data frame of coefficients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.