Description Usage Arguments Value References Examples
Calculate the variance of the mean with the Newey West (1987, 1994) HAC estimator.
This is a wrapper around lrvar from the sandwich package.
1 | nse.nw(x, lag.prewhite = 0)
|
x |
A numeric vector or matrix. |
lag.prewhite |
Prewhite the serie before analysis (integer or NULL, i.e. automatic selection) |
The variance estimator in the univariate case or the variance-covariance matrix estimator in the multivariate case.
Andrews, Donald WK. "Heteroskedasticity and autocorrelation consistent covariance matrix estimation." Econometrica: Journal of the Econometric Society 59.03 (1991): 817-858.
Newey, Whitney K., and Kenneth D. West. "A simple, positive semi-definite, heteroskedasticity and autocorrelationconsistent covariance matrix.", Econometrica: Journal of the Econometric Society 55.03 (1987) : 703-708.
Newey, Whitney K., and Kenneth D. West. "Automatic lag selection in covariance matrix estimation." The Review of Economic Studies 61.4 (1994): 631-653.
Zeileis, Achim. "Econometric computing with HC and HAC covariance matrix estimators." (2004).
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.