R/funcs.R
find_beta.Rd
Compute the OLS estimate of regression coefficients
find_beta(y, X)
Response vector
Design matrix
Numeric vector of OLS estimates
y <- c(1,2,3,4) X <- cbind(1, c(1,2,3,4)) find_beta(y, X) #> X1 X2 #> 0 1