GARCH rolling forecast

For questions regarding programming in the EViews programming language.

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

penguin006
Posts: 5
Joined: Wed Jul 17, 2013 4:17 pm

GARCH rolling forecast

Postby penguin006 » Wed Jul 17, 2013 4:28 pm

hi everyone,

I am having some trouble with rolling volatility forecasts.

I have a file containing 4208 observations and I choose 1-4000 as in sample observations and 4001-4208 as out of sample observations, when I run the code, it said %CMND is not defined or is an illegal command in ''CMND = _THIS.@COMMAND'', Perhaps, I'm not getting something right. can anyone tell me how to change the code? these attachments are my program and eviews work file.

Thanks a lots.
Attachments
skk.wf1
(185.04 KiB) Downloaded 261 times
program.prg
(1.64 KiB) Downloaded 320 times

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

Re: GARCH rolling forecast

Postby EViews Gareth » Wed Jul 17, 2013 4:34 pm

Which version of EViews?

penguin006
Posts: 5
Joined: Wed Jul 17, 2013 4:17 pm

Re: GARCH rolling forecast

Postby penguin006 » Wed Jul 17, 2013 4:39 pm

Which version of EViews?
hi,
I am using eviews 7.2. thank you

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

Re: GARCH rolling forecast

Postby EViews Gareth » Wed Jul 17, 2013 4:40 pm

From the look of your code, it looks like you have to have an equation object open when running it (that's what the _this.@command is for anyway, I presume).

Do you have an equation open?

penguin006
Posts: 5
Joined: Wed Jul 17, 2013 4:17 pm

Re: GARCH rolling forecast

Postby penguin006 » Wed Jul 17, 2013 4:43 pm

From the look of your code, it looks like you have to have an equation object open when running it (that's what the _this.@command is for anyway, I presume).

Do you have an equation open?
oh yes, I am tried again, it worked! thank you!!! , but it said Matrix size mismatch in "COLPLACE(COEFMAT,EQ01.@COEFS,1)".
Syntax error in "IF @LAST < 806 THEN".

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

Re: GARCH rolling forecast

Postby EViews Gareth » Wed Jul 17, 2013 4:46 pm

You can't use @last like that.

penguin006
Posts: 5
Joined: Wed Jul 17, 2013 4:17 pm

Re: GARCH rolling forecast

Postby penguin006 » Wed Jul 17, 2013 4:51 pm

You can't use @last like that.

thank you for your reply, but i am not very clear about use @last like, could you please explain it ?

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

Re: GARCH rolling forecast

Postby EViews Gareth » Wed Jul 17, 2013 5:48 pm

What are you trying to do with that line?

penguin006
Posts: 5
Joined: Wed Jul 17, 2013 4:17 pm

Re: GARCH rolling forecast

Postby penguin006 » Thu Jul 18, 2013 3:11 am

What are you trying to do with that line?
hi, I am changed this code , and it looks like worked. Could you please check it for me?


many thanks.
Attachments
program.prg
(1.64 KiB) Downloaded 402 times


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests