beta_ols: Get OLS regression coefficients

Description Usage Arguments Value

View source: R/misc.R

Description

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

Usage

1
beta_ols(X, y)

Arguments

X

Data matrix (n by p)

y

Response vector (length n)

Value

Vector of regression coefficients


alexpghayes/hayeslib documentation built on May 5, 2019, 4:47 p.m.