Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

newey_west_pw

Compute Newey-West estimator with prewhitened estimation functions


Description

Compute Newey-West estimator with prewhitened estimation functions. The function is based on the Matlab code by James P. LeSage.

Usage

newey_west_pw(hhat_mat, xpxi_mat, D_mat, h)

Arguments

hhat_mat

Matrix.

xpxi_mat

Matrix.

D_mat

Matrix.

h

integer.

Value

A list. The first element contains the pre-whitened Newey West covariance matrix.

References

Andrews, D.W. and Monahan, J.C. (1992). An improved heteroskedasticity and autocorrelation consistent covariance matrix estimator. Econometrica, pp.953-966.

Newey, W.K., and West, K.D. (1987). “A Simple, Positive-Definite, Heteroskedasticity and Autocorrelation Consistent Covariance Matrix.” Econometrica, 55, 703–708.


lpirfs

Local Projections Impulse Response Functions

v0.2.0
GPL (>= 2)
Authors
Philipp Adämmer [aut, cre] (<https://orcid.org/0000-0003-3770-0097>), James P. LeSage [ctb], Mehmet Balcilar [ctb], Jon Danielsson [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.