Assumes data matrix is tall or square, but not wide. Does not add intercept.

beta_ols(X, y)

Arguments

X

Data matrix (n by p)

y

Response vector (length n)

Value

Vector of regression coefficients