correct | R Documentation |
'hac()' corrects the estimated errors based on options of prewhitening using a AR(1) process estimation of error terms to obtain heteroskedasticy and autocorrelation consistency (HAC) errors with automatic bandwith and kernel similar to Andrews, 1994
correct(reg, res, prewhit)
reg |
matrix of regressors |
res |
matrix of estimated residuals |
prewhit |
Option of using prewhitening process. If |
hac Heteroskedasticy and autocorrelation consistent errors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.