Standard errors in the state space

For questions regarding programming in the EViews programming language.

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

timwatson
Posts: 4
Joined: Sun Jan 13, 2013 10:25 pm

Standard errors in the state space

Postby timwatson » Wed Feb 06, 2013 3:29 pm

Hi,

I am having trouble getting error bands for a NAIRU estimated using the kalman smoother in the Eviews State Space. My code and data is attached below:
pc bc nairu.prg
(11.59 KiB) Downloaded 275 times
Data:
USNAIRU_Data.xls
(166 KiB) Downloaded 224 times
As you can see the output basically says the NAIRU is estimated with a very small constant error which cannot be correct.

Would it be likely that bootstrapping would avoid this problem?

Cheers

Tim

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Standard errors in the state space

Postby trubador » Thu Feb 07, 2013 2:00 pm

Just change the following line:

Code: Select all

SS_all.append @state nairu=nairu(-1)+[var=!SIGMA8^2]
with this one:

Code: Select all

SS_all.append @state nairu=nairu(-1)+[var=SIGMA(8)^2]

timwatson
Posts: 4
Joined: Sun Jan 13, 2013 10:25 pm

Re: Standard errors in the state space

Postby timwatson » Thu Feb 07, 2013 4:39 pm

Thanks Trubador, much appreciated, but I still get the same problem with that coding error corrected.

The standard error is constant, and very small.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Standard errors in the state space

Postby EViews Glenn » Thu Feb 07, 2013 5:43 pm

Running the model I get a Failure to Improve the likelihood with gradients that are decidedly far from zero. I wouldn't view this estimate as having converged.

There are a lot of coefficients 15+2 variance parameters with only 208 observations. Perhaps other starting values might help, but it wouldn't surprise me to find that the likelihood is quite flat in some regions. It appears that in the region you are in, it's quite flat and the estimates are getting stalled.

timwatson
Posts: 4
Joined: Sun Jan 13, 2013 10:25 pm

Re: Standard errors in the state space

Postby timwatson » Thu Feb 07, 2013 6:30 pm

Running the model I get a Failure to Improve the likelihood with gradients that are decidedly far from zero. I wouldn't view this estimate as having converged.

There are a lot of coefficients 15+2 variance parameters with only 208 observations. Perhaps other starting values might help, but it wouldn't surprise me to find that the likelihood is quite flat in some regions. It appears that in the region you are in, it's quite flat and the estimates are getting stalled.
Thanks Glen, somebody had mentioned to me that this may be the issue. I have played around with some different starting values, but this hasn't helped a great deal so far. I will keep trying.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests