Description Usage Arguments Value Author(s)
Estimates parameters of a linear regression model using the closed form of the Ordinary Least Squares (OLS) estimator.
1 | linreg_ols(X, y, FUN = linreg_inv)
|
X |
The data matrix, that is an n \times k matrix of n observations of k regressors, which includes a regressor whose value is 1 for each observation. |
y |
n \times 1 vector of observations on the regressand variable. |
FUN |
OLS function to use.
The options are |
Returns a k \times 1 matrix of k unknown regression coefficients (\hat{β}) estimated using ordinary least squares.
Ivan Jacob Agaloos Pesigan
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.