powered by
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)
Vector of OLS coefficients
Target vector (n x 1)/matrix (n x m)
Design matrix (n x p)