ols(y, x, tol=1e-07, LAPACK=FALSE, method=1, user.fun=NULL, user.options=NULL)
qr
function. Only used if LAPACK is FALSEqr
functionmethod = 1
or 2 only returns the OLS coefficient estimates together with the QR-information. method = 1
is slightly faster than method=2
. method=3
returns in addition the ordinary variance-covariance matrix of the OLS estimator. method=4
returns the White (1980) heteroscedasticity robust variance-covariance matrix in addition to the information returned by method=3
, whereas method=5
does the same except that the variance-covariance matrix now is that of Newey and West (1987).
W. Newey and K. West (1987): 'A Simple Positive Semi-Definite, Heteroskedasticity and Autocorrelation Consistent Covariance Matrix', Econometrica 55, pp. 703-708.
qr
, solve.qr