View source: R/linear_regression.R
simple_linear_regression | R Documentation |
Implements simple linear regression by hand
simple_linear_regression(dat, response, explanatory, method = NULL)
dat |
A data frame |
response |
The name of a response variable in the data frame (unquoted) |
explanatory |
The name of the explanatory variable in the data frame (unquoted) |
method |
The method used to compute the coefficients (NULL, "qr", "gradientdescent") |
A data frame of coefficients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.