powered by
Computes OLS coefficients using .lm.fit for computational efficiency. If Y is a matrix, applies OLS column-wise.
.lm.fit
Y
beta_ols(X, Y)
A numeric matrix of coefficients.
A numeric matrix of regressors (T × k).
A numeric matrix or vector of responses (T × N or T × 1).