HAC prewhitening error

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

myang315
Posts: 3
Joined: Thu Jun 30, 2016 7:46 am

HAC prewhitening error

Postby myang315 » Thu Jun 30, 2016 7:55 am

Hello,

I am trying to apply the HAC in OLS estimation. I noticed that once we specified prewithitening, the standard error of some coefficients may turn to NA. Can you please help? Please see the code I used. Thanks.

eq_loop.ls(COV=HAC, COVLAG=1, COVKERN=QUADSPEC, COVBW=ANDREWS) {%depend} c {%regressor}

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

Re: HAC prewhitening error

Postby EViews Gareth » Thu Jun 30, 2016 8:32 am

Are there any warning messages produced on the equation output?

myang315
Posts: 3
Joined: Thu Jun 30, 2016 7:46 am

Re: HAC prewhitening error

Postby myang315 » Thu Jun 30, 2016 8:54 am

Thanks for your help.

There is no error message. But I want to get the standard error value, which is NA in the model output.

Method: Least Squares
Date: 06/30/16 Time: 11:51
Sample (adjusted): 2005Q4 2013Q4
Included observations: 33 after adjustments
HAC standard errors & covariance (Prewhitening with lags = 1,
Quadratic-Spectral kernel, Andrews bandwidth = 0.6120)

Variable Coefficient Std. Error t-Statistic Prob.

C -171.7701 NA NA NA

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

Re: HAC prewhitening error

Postby EViews Gareth » Thu Jun 30, 2016 9:02 am

Post your workfile.

myang315
Posts: 3
Joined: Thu Jun 30, 2016 7:46 am

Re: HAC prewhitening error

Postby myang315 » Thu Jun 30, 2016 9:26 am

Sorry, I cannot directly post the workfile on the website. Could I email you my workfile?

Thanks.

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

Re: HAC prewhitening error

Postby EViews Gareth » Thu Jun 30, 2016 11:08 am


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

Re: HAC prewhitening error

Postby EViews Gareth » Thu Jun 30, 2016 2:51 pm

Please make sure your copy of EViews is up to date. Your estimation worked fine for us.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests