.x13 syntax problem

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

pekaype
Posts: 7
Joined: Sat Jan 11, 2014 8:21 pm

.x13 syntax problem

Postby pekaype » Fri Oct 09, 2015 2:25 am

I am trying to code the equivalent of selecting ARIMA model (_f) as a forecast output when you have added ARIMA options/forecast arima model (including tramo and seats selection in default options) and I guess I am misunderstanding the syntax.

Code I'm using:

Code: Select all

y.x13(save="s12 s10 s13 s11 afd", flen=2) @tramo(maxdiff="(2,1)", maxorder="(2,1)") @seats()

which works but I'm missing the link to the ARIMA forecast output.

Question [/i]how do I include the ARIMA model (_F) forecast output into the code?[/i]


Thanks

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

Re: .x13 syntax problem

Postby EViews Gareth » Fri Oct 09, 2015 8:16 am

The code you have should work. Most likely problem is that X13 isn't generating the forecasts, so EViews can't import them.
Follow us on Twitter @IHSEViews

pekaype
Posts: 7
Joined: Sat Jan 11, 2014 8:21 pm

Re: .x13 syntax problem

Postby pekaype » Fri Oct 09, 2015 12:31 pm

EViews Gareth wrote:The code you have should work. Most likely problem is that X13 isn't generating the forecasts, so EViews can't import them.


Thanks for the reply Gareth

yes it seems that x13 is not creating the forecast. can you tell me how to include that ARIMA model forecast output into code? in the x13 options there is a option you can tick under forecast output which says ARIMA model (_f) and ARIMA bounds (_FL _FU). basically that is doing what I need for manual clicking use, but I just can't seem to find the options (even within the .x13 documentation) to create the same result by code.

Thanks!

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

Re: .x13 syntax problem

Postby EViews Gareth » Fri Oct 09, 2015 2:12 pm

Ah, looks like there is a bug currently.

It should be save="fcst", but it isn't working. We'll get it fixed in the next EV9 patch.
Follow us on Twitter @IHSEViews

oliveira83
Posts: 3
Joined: Fri Dec 22, 2017 10:58 am

Re: .x13 syntax problem

Postby oliveira83 » Mon Apr 16, 2018 2:04 pm

EViews Gareth wrote:Ah, looks like there is a bug currently.

It should be save="fcst", but it isn't working. We'll get it fixed in the next EV9 patch.




I tried save the forecast from x13 in eviews 10 and still with problem.

series01.x13(save="d11", appendfcst = "yes", tf=auto, arimasmpl="1995M01 2018M02", flen=2) @x11arima(save="fcast", amdl=b, mfile="c:\users\318917~1\appdata\ev_temp\evx13.mdl") @x11(fcast)

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

Re: .x13 syntax problem

Postby EViews Gareth » Mon Apr 16, 2018 3:10 pm

The forecast won't be imported if a) X13 didn't create a forecast (for example it decided none of the ARIMA models were appropriate) or b) the forecast extends beyond the workfile range.
Follow us on Twitter @IHSEViews

oliveira83
Posts: 3
Joined: Fri Dec 22, 2017 10:58 am

Re: .x13 syntax problem

Postby oliveira83 » Tue Apr 17, 2018 5:22 am

EViews Gareth wrote:The forecast won't be imported if a) X13 didn't create a forecast (for example it decided none of the ARIMA models were appropriate) or b) the forecast extends beyond the workfile range.



caged.wf1
(29.93 KiB) Downloaded 3 times


The problem is when I try to code to save the forecast. I want to use the forecast of the x13, but I have 100 series, so I have to make a loop.


Return to “Programming”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests