simple_ols | R Documentation |
Conduct Simple Linear Regression
simple_ols(X, Y, add_intercept = FALSE)
X |
An n \times m design matrix, optionally with an intercept column present. |
Y |
An n-length vector or n \times 1 matrix representing the response. |
add_intercept |
Logical. Should an intercept column (a column of 1s) be added to |
This function finds the minimum-norm least squares solution of X^T X β = X^T Y.
Vector of estimated beta coefficients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.