Questions tagged [neweywest]

A type of the coefficient variance-covariance matrix estimator used to compute robust standard errors in time series context. Please consider using the more general *robust-standard-error* tag instead of this.

Newey-West standard errors are a version of standard errors that corrects for serial correlations of regression residuals. If a regression model is run as

$$ y_t = x_t' \beta + \epsilon_t $$

(where $x_t$ may contain lagged values of $y_t$ as needed), then Newey-West covariance matrix estimator has a form

$$ v[\hat\beta_{\rm OLS}] = (X'X)^{-1} \frac{n}{n-p} \sum_{l=0}^m K(l,m) e_t e_{t-l} (x_t' x_{t-l} + x_{t-l}' x_t) (X'X)^{-1} $$

where the leftmost summation is over possible lags that the regression errors are suspect of being correlated; $n$ is the sample size, $p$ is the number of regressors; $K(l,m)$ is a kernel of the estimator, $K(l,m)=1-l/(m+1), l>0; K(0,m)=1/2$ in the original Newey and West paper.

Technical coverage in Stata manuals: http://www.stata.com/manuals14/tsnewey.pdf

Main reference:

Newey, W. K., and K. D. West. 1987. A simple, positive semi-definite, heteroskedasticity and autocorrelation consistent covariance matrix. Econometrica 55: 703–708. http://econpapers.repec.org/article/ecmemetrp/v_3a55_3ay_3a1987_3ai_3a3_3ap_3a703-08.htm

Related tags:

  • -- generic set of questions and answers on the corrections to the standard errors when i.i.d. assumptions are violated
  • -- questions and answers on corrections to the standard errors that have the "sandwich" form (like $(X'X)^{-1}$ for the bread part and the lagged cross-product for the meat part in Newey-West estimator)
  • -- questions and answers on corrections to the standard errors that account for cross-sectional correlations of observations within clusters (e.g. due to complex sampling design)
50 questions
17
votes
1 answer

Comparison between Newey-West (1987) and Hansen-Hodrick (1980)

Question: What are the main differences and similarities between using Newey-West (1987) and Hansen-Hodrick (1980) standard errors? In which situations should one of these be preferred over the other? Notes: I do know how each of these adjustment…
11
votes
1 answer

vcovHC, vcovHAC, NeweyWest – which function to use?

I am trying to update my lm() based model to get correct standard errors and tests. I am really confused which VC matrix to use. The sandwich package offers vcovHC , vcovHAC and NeweyWest. While the former only accounts for heteroskedasticity the…
hans0l0
  • 2,065
  • 4
  • 25
  • 31
10
votes
2 answers

Newey-West t-statistics

I have a time-series which is autocorrelated by construction, and might be heteroscedastic. I have calculated the sample mean of this time-series, and would like to calculate the t-statistic corresponding to the hypothesis that the mean of this…
8
votes
1 answer

Formula for Newey West Standard Error

Could someone please help with the formula for the Newey West standard error of $\beta_1$ (without matrix notation) for the following regression: $Y_t=\beta_0+\beta_1X_t+\epsilon_t$ where $\epsilon_t$ is believed to be serial correlated and/or…
8
votes
1 answer

How do joint test, r-squared behave when using autocorrelation / heteroskedasticity robust std. errors?

Recently we discussed on SO how to update a standard linear regression summary with NeweyWest standard errors. I used coeftestfrom the sandwich package. It was told to use unclass to update my already existing summary like this:…
hans0l0
  • 2,065
  • 4
  • 25
  • 31
5
votes
1 answer

Newey-West standard errors when Durbin-Watson test results are fine

I am running a time-series regression. The Durbin-Watson statistics is very close to 2. In such a situation, would it still be better to use Newey-West standard errors, or is it ok to use OLS standard errors?
5
votes
0 answers

How to compute Newey West standard errors and t-statistics

I'm currently trying to use Newey-West standard errors accounting for Heteroskedasticity and Autocorrelation with the sandwich package in R, but i lack understanding as i can not fully grasp the instructions provided in the…
Gritti
  • 151
  • 2
  • 11
4
votes
1 answer

Replicating White's standard errors in R with the NeweyWest function

Theoretical background: White's heteroskedasticity-consistent (HC) standard errors and Newey-West's heteroskedasticity- and autocorrelation-consistent (HAC) standard errors are closely related. When you set the lag parameter for the latter method to…
4
votes
1 answer

Does Newey-West standard errors affects the significance level of R2?

General question: I use the linear regressions with the OLS method to check whether cross-sectional standard deviation is able to describe future sumed excess returns or not. Because of autocorrelation there is the need to update the summary with…
Bruno
  • 53
  • 1
  • 7
4
votes
2 answers

How to determine the appropriate number of lags when using Newey-West (or HAC) standard errors

I have an unbalanced panel dataset where both autocorrelation and heteroskedasticity are present. I have read, in the Stata manual, that the newey command (see Newey-West, 1987) is one way in which these two problems may be addressed simultaneously.…
3
votes
1 answer

How are clustered standard errors and Newey-West errors related

As the question says, how are the two concepts related? As far as I understand, both approaches correct for heteroscedasticity and autocorrelation. Yet, they are different. Would applying one of the both methods in a case where the other one would…
3
votes
1 answer

Error trying to calculate Newey West Standard Errors for a VAR-model in R

I estimated a VAR-model in R using the vars package and want to estimate Newey West Standard Errors using the sandwich package VARmodel_quotedspread <- VAR(data_for_VAR_model_quotedSpread, lag.max = 2, ic = "HQ", type =…
3
votes
1 answer

Heteroscedasticity in VAR Residuals

I got some heteroscedasticity in the residuals of a VAR model (check the plot). As fas as I know, the VAR coefficients are still consistent. However, the standard errors are supposed to be not well estimated. I know Newey West adjustment of…
3
votes
1 answer

Newey West Covariance in SAS and in R are different

I am using the proc autoreg procedure in SAS and the sandwich library in R to calculate Newey West covariance for a linear model. The two methods give the same coefficient estimates (expected because they are OLS estimators), but different…
Ye Tian
  • 619
  • 6
  • 19
2
votes
1 answer

Probability as a dependent variable in a time-series regression

Are there any issues to run a Newey-West time-series regression on a dependent variable that is a probability? What are the biases that I am facing? I can't find anything online that can help me out with this issue.
CharlesM
  • 573
  • 2
  • 12
1
2 3 4