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

newey_west

Compute OLS parameters and robust standard errors based on Newey-West estimator


Description

Compute OLS parameters and robust standard errors based on Newey and West (1987). The function is based on the Matlab code by James P. LeSage.

Usage

newey_west(y, x, h)

Arguments

y

Numeric vector.

x

Numeric matrix.

h

Integer.

Value

A list. The first element contains the estimated OLS parameters, the second element the Newey West covariance matrix, the third element the estimated functions, the fourth element the unscaled covariance matrix and the last element the meat estimator.

References

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.