## Newey West bartlett Kernel automatic bandwidth

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

JoaoPereira
Posts: 14
Joined: Thu Jan 03, 2013 10:56 am

### Newey West bartlett Kernel automatic bandwidth

Hello

I' m working with autocorrelation and experiencing the effect of different bandwidths in the results of a model.With fixed bandwidth I have no problems but when it comes to automatic bandwidth,I get a difference in the result.
Particularly I'm dealing with Newey-West estimator with kernel function Bartlett and automatic bandwidth. According to technical notes (page 780 users guide II) before determining BT(bandwidth) I need to estimate alfa(q),this case p=1 because of Bartlett function.
For alfa(1), I'm estimating AR(1) models (without intercept) for each element of X(t)*e(t) that is the product of original matrix X of independent variables (except for intercept) times the estimated error.
So if I have k parameters(including intercept) I need k-1 AR(1) models.And for each one I pick both the coefficient and standard deviation estimated to plug in the
the formula for the calculation of alfa(1) provided by Eviews (formula D.11 page 180)

If I consider only a parameter rather than the intercept, the result for the bandwidth is ok but if there is more than one independent variable the result no longer matchs.
Note:The expressions for alfa(1) still depends on the weighting vector Ws that is considered to be Ws=1 so it cancels out.
I don´t know if there is any weighting we must consider but the formula seems very clear

To make things clear I attach 2 simple models (with one and two independent variables) only for help purpose.
If somebody can help I'll appreciate

Tks

Joao Pereira
Attachments
Eviews1.xlsx

JoaoPereira
Posts: 14
Joined: Thu Jan 03, 2013 10:56 am

### Re: Newey West bartlett Kernel automatic bandwidth

Hi Gareth

Could you give any tip about my issue?

I´d appreciate
Tks

Joao Pereira

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12419
Joined: Tue Sep 16, 2008 5:38 pm

### Re: Newey West bartlett Kernel automatic bandwidth

I can't really follow what you're doing, but I think you've made a mistake with the sigmas somewhere. Attached is a version that seems to work. I just threw some extra calculations in.
Attachments
Eviews1.xlsx

JoaoPereira
Posts: 14
Joined: Thu Jan 03, 2013 10:56 am

### Re: Newey West bartlett Kernel automatic bandwidth

Hello Gareth

Thank you very much
My mistake sorry
Joao Pereira