coef_ols {scregclust} | R Documentation |
Compute OLS coefficients
Description
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.
Usage
coef_ols(y, x)
Arguments
y |
Target vector (n x 1)/matrix (n x m) |
x |
Design matrix (n x p) |
Value
Vector of OLS coefficients
[Package scregclust version 0.2.0 Index]