Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
31 views

Is the optimal lag length for the Hansen and Hodrick and Newey West robust standard errors the same?

Is the optimal lag length for the Hansen and Hodrick and Newey West robust standard errors the same? I have read in Greene that the optimal is $T^{1/4}$ for Newey-West, is this the same for Hansen ...
0
votes
0answers
38 views

How to determine the bandwidth parameter? Newey-West

How to determine the bandwidth parameter? Following from the below paragraph is it easy to understand how Newey and West determine the bandwidth? "The heteroskedasticity consistent estimator (HCE) ...
2
votes
0answers
132 views

R - Testing for Granger causality when OLS assumption are violated

I am using the vars package to estimate a VAR-model. Since it seems, that the residuals of my model are neither homoscedastic or uncorrelated I computed Newey West ...
2
votes
0answers
158 views

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 <...
0
votes
0answers
24 views

NeweyWest correct - am I doing this right?

So I have a glm (Gaussian link function) in which year and sex are predictors, and income is the dependent variable. ...
0
votes
0answers
1k views

Bartlett Kernel (Newey West Covariance Matrix)

Referring to Pesaran (2015) the NW covariance matrix is computed according to the following formula: $$\hat V(\hat\beta)=\frac{1}{T}Q_T^{-1}\hat S_TQ_T^{-1}$$ (Skipping the definition of Q) $$\hat ...
0
votes
2answers
438 views

Newey West estimator, application

What is the application of the Newey-West estimator of variance in case that we have the presence of autocorrelation in our model?
0
votes
0answers
302 views

ARIMA OLS regression with Newey West standard errors in R

In R I am trying to run an ARIMA model rsi_model_2 <- arima(dlog_seasonal_RSI_ts, order=c(0,0,1), seasonal=c(0,0,1)) How do I make sure it uses Newey-West ...
13
votes
1answer
1k views

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? ...
2
votes
1answer
1k views

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 ...
0
votes
0answers
296 views

Different optimal bandwidths of Newey West (1994) in R and STATA

R and STATA gave very different optimal bandwidths for the same data set. It will be greatly appreciated if someone can give me any hint why this happens. Here are two sample codes from R and STATA ...
1
vote
0answers
31 views

How to estimate the relationship between the amount of Weibo (or twitter) count and volatility in the stock/gold market

I really need some help here since I feel I have no one to ask this. I am doing a research to find the relationship between the amount of Weibos (Chinese Twitter/Social Media) on a subject and the ...
1
vote
1answer
730 views

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 ...
2
votes
1answer
2k views

Optimal Lag for Newey West

I am currently working on my PhD thesis and was wondering how I can identify the optimal number of lags for the Newey West covariance matrix. So far, my code is ...
1
vote
1answer
6k views

OLS regression with Newey-West error term [closed]

I need to estimate a linear regression with the OLS method. Since I assume the error terms to be correlated, I would like to account for heteroskedasticity and autocorrelation in the error terms. I ...
4
votes
1answer
2k views

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 ...
0
votes
0answers
52 views

Newey-West like HAC estimates with non-temporal correlation structure in residuals

Let's suppose I have data with key variables country, company and year (and a load of model variables). There are many companies per country and many years of observations per company. Naturally, ...
3
votes
1answer
971 views

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....
5
votes
1answer
7k views

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 $\...
2
votes
1answer
566 views

Diebold-Mariano test: robust standard errors for 1-day ahead forecasts?

Diebold & Mariano suggest using Newey-West standard errors to correct for autocorrelation and heteroscedasticity in the error terms when comparing forecast accuracy. However, if I understand ...
2
votes
0answers
164 views

How does Newey West affect inference?

I understand that the Newey-West estimator is an approach to estimate the covariance of the linear regression estimator (OLS) when there are heteroskedasticity and autocorrelation. Should it modify ...
1
vote
0answers
252 views

Correction for non-normal residuals where residuals are not correlated or show heteroskedasticity

I know the implication of non-normal residuals is uncertain statistical tests because the SEs are inefficient. Can I apply the Newey-West to calculate standardized Standard Errors for an OLS ...
2
votes
2answers
6k views

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 ...
4
votes
1answer
1k views

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 ...
0
votes
1answer
582 views

Newey West standard errors in regression model without constant

I'm estimating $y_i= \beta_1 \times x_{1i} + \varepsilon_i$ on a time series on $y$ and $x$, so in presence of Heteroschedasticity and Autocorrelation. My model does not include any intercepts. Are ...
2
votes
1answer
2k views

Robust OLS standard errors (Newey-West)

I am running a simple OLS regression with HAC adjustment (i.e. Heteroschedasticity and Autocorrelation adjustment) using the following function in hac() in matlab. ...
2
votes
2answers
4k views

Newey-West standard errors in OLS

I am trying to compute robust coefficient estimates for OLS, using the hac() function in MATLAB (see description of function in MathWorks). In my case, I am ...
1
vote
0answers
137 views

Finding the amount of error with a multiple regression formula that is determining stock returns

I'm brand new to statistics and I'm using C# and Math.Net to perform multiple regression on a formula with 3 inputs and 1 output. I was told that finding an rsquared value isn't recommended for a ...
1
vote
0answers
253 views

Prediction interval using predict and NeweyWest in R

I have a basic linear regression model I fitted to a time series. Unfortunately I have to account for autocorrelation and heteroskedasicity in the model and I have done so with the NeweyWest function ...
4
votes
0answers
5k views

How to compute Newey West standard errors and t-statistics [closed]

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 ...
1
vote
1answer
572 views

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 ...
1
vote
0answers
392 views

Shrinkage Estimator for Newey-West Covariance Matrix

This is a cross post. I would like to apply the Newey-West covariance estimator for portfolio optmization. Up to lag one it is given by $$ \Sigma = \Sigma(0) + \frac12 \left (\Sigma(1) + \Sigma(1)^T \...
6
votes
2answers
7k views

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 ...
2
votes
1answer
2k views

Newey-West standard errors with cross-sectional OLS?

Consider the cross sectional: $Y_i = a + b X_i + e_i$ where I have reason to believe that $E[e_j e_k] \not= 0$ for a concerning number of $j\not= k$. What happens if I use a serial correlation ...
0
votes
1answer
2k views

Get the R2 from GMM Newey-West in SAS

I'm running a simple cross-sectional regression where I first run regressions for every year of observations and then I'm running this code to get the Newey-West corrected standard errors: ...
8
votes
1answer
6k views

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 ...
6
votes
1answer
5k views

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 ...