coef_ols | R Documentation |
If the design matrix has full column-rank, then use the normal least squares estimate. Otherwise, use the Moore-Penrose inverse to compute the least squares estimate.
coef_ols(y, x)
y |
Target vector (n x 1)/matrix (n x m) |
x |
Design matrix (n x p) |
Vector of OLS coefficients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.