Skip to contents

Compute the OLS estimate of regression coefficients

Usage

find_beta(y, X)

Arguments

y

Response vector

X

Design matrix

Value

Numeric vector of OLS estimates

Examples

y <- c(1,2,3,4)
X <- cbind(1, c(1,2,3,4))
find_beta(y, X)
#> X1 X2 
#>  0  1