autoarma in batch run

For questions regarding programming in the EViews programming language.

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

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

autoarma in batch run

Postby LindaR » Wed Nov 23, 2016 6:58 pm

Hi,
I am using quarterly data with autoarma to generate 5 year out forecasts in EViews 9.5. When I run the code on any single series it works fine but when I try to do all the series (441) the program crashes - I get a message saying that EViews9 has stopped working and I need to close it - but the number of series it manages to process before crashing varies. Any suggestions?
Attachments
autoarima_forecasts.prg
all series
(3.66 KiB) Downloaded 280 times
autoarmasingleseries.prg
single series
(1.07 KiB) Downloaded 240 times

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

Re: autoarma in batch run

Postby EViews Gareth » Thu Nov 24, 2016 12:37 am

Can you provide the data too?

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Re: autoarma in batch run

Postby LindaR » Thu Nov 24, 2016 3:23 pm

Sure thing, here it is, thanks.
Attachments
forecasting_series.wf1
(738.1 KiB) Downloaded 185 times

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

Re: autoarma in batch run

Postby EViews Gareth » Mon Nov 28, 2016 12:22 pm

Is your copy of EViews up to date (Help->About EViews).

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Re: autoarma in batch run

Postby LindaR » Tue Nov 29, 2016 2:17 pm

Yes, I think so - EViews 9 ((.5 as far as I am aware).

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Re: autoarma in batch run

Postby LindaR » Tue Nov 29, 2016 2:20 pm

Sorry, didn't read all your post - it is the Enterprise Edition May 1 2015 build, thanks.

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

Re: autoarma in batch run

Postby EViews Gareth » Tue Nov 29, 2016 2:23 pm

Ah, that's very out of date - please update to the latest version.

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Re: autoarma in batch run

Postby LindaR » Thu Jan 19, 2017 12:21 am

I finally got out IT to update EViews and it is working fine but the model estimates I get do not seem to be stable - if I run the program twice I get different models selected for some series, sometimes even if they have converged within the 500 iterations - is this normal and if so why ? I attach the data and program.

I have some additional questions about autoarma:
1. If you get a dependent variable like D(serxx, 2) does the , 2 mean it has been differenced twice?
2. Is it possible to retrieve how the starting values have been set?
3. What is the data-based algorithm used to determine starting values in the first instance?
4. Is it possible to increase the number of iterations?

Thanks for your assistance,

Linda
Attachments
forecasting_series.wf1
(630.34 KiB) Downloaded 193 times
autoarima_forecastsv1.prg
(6.21 KiB) Downloaded 240 times

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

Re: autoarma in batch run

Postby EViews Gareth » Thu Jan 19, 2017 10:35 am

For arma models that do not converge with the standard starting value algorithms, EViews resorts to random starting values, which may mean that running it twice will give different results.

1. Yes.
2. No.
3. Least squares regression of residuals against lagged residuals (for AR terms) and innovations (for MA terms), where innovations are obtained by first regressing residuals against many lags of residuals. The number of lags to use for MA is determined by:
whiten_lags = floor(_min((nobs-maxar)/3.0,12.0) * pow(nobs/100.0, 0.25));
4. It uses the global option (Options->General Options->Estimation)

LindaR
Posts: 10
Joined: Thu Oct 06, 2016 2:42 pm

Re: autoarma in batch run

Postby LindaR » Thu Jan 19, 2017 2:44 pm

Thanks Gareth,
This is really helpful. A lot to digest - I will have to take some time to think about it.
Linda


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests