## Eviews 10 Has Stopped Working

For questions regarding programming in the EViews programming language.

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

BCNAV
Posts: 40
Joined: Tue Oct 31, 2017 9:06 am

### Eviews 10 Has Stopped Working

I'm stuck on this. I am using EViews 10+ Enterprise Edition June 22 2018.

This is a simple loop for ETS estimation:

Code: Select all

`%towers2 = "CYVR CYEG CYYC CYXE CYWG CYYZ CYTZ CYOW CYUL CYHZ CYXX CZBB CYBW CYRC CZVL CYFC CYMM CYQX CYHM CYLW CYKF CYNJ CYXU CYQM CYHU CYOO CYPK CYXS CYQB CYQR CYJN CYAM CYYT CYQT CYKZ CYYJ CYXY CYQG CYAV CYZF CYHC"%flight_rule2 = "IFR VFR"for %series1 {%flight_rule2}   !row=2   for %series2 {%towers2}      'Cannot have zeros for any multiplicative analysis, so recode 0 to 0.01      {%series1}_{%series2}_n = @recode({%series1}_{%series2}_n<=0,0.01,{%series1}_{%series2}_n)            smpl @first %history_end_date         freeze(mode=overwrite,{%series1}_{%series2}_stats) {%series1}_{%series2}_n.ets(e=e, t=e, s=e,modsel=aic,graph=cl,table=cl) forecast               smpl %forecast_start_date %forecast_end_date         genr {%series1}_{%series2}_ets_f = @round(forecast)                  'Under circumstances of small numbers of observastions (i.e., medium wtc overflights), the ETS framework can make negative forecasts, so recode for this. This is very rare, just check for it         {%series1}_{%series2}_ets_f  = @recode({%series1}_{%series2}_ets_f <0,0,{%series1}_{%series2}_ets_f )         'Make an actual series that is only for the forecast period         genr {%series1}_{%series2}_ets_a = {%series1}_{%series2}_n         delete forecast      smpl @all            scalar {%series1}_{%series2}_ets_mape = @mape({%series1}_{%series2}_ets_f,{%series1}_{%series2}_ets_a)      scalar {%series1}_{%series2}_ets_mae = @mae({%series1}_{%series2}_ets_f,{%series1}_{%series2}_ets_a)      if %series1="IFR" then               a_ets_feval_ifr(!row,1) = %series2         a_ets_feval_ifr(!row,2) = {%series1}_{%series2}_ets_mape         a_ets_feval_ifr(!row,3) = {%series1}_{%series2}_ets_mae         !row=!row+1      else         a_ets_feval_vfr(!row,1) = %series2         a_ets_feval_vfr(!row,2) = {%series1}_{%series2}_ets_mape         a_ets_feval_vfr(!row,3) = {%series1}_{%series2}_ets_mae         !row=!row+1      endif   nextnextsmpl @allstop`

Any idea what this error means: "Eviews 10 Has Stopped Working" Any way to find out what is really going on?

Note the table has been correctly made in commands prior to what you see here

-Bill

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

### Re: Eviews 10 Has Stopped Working

Could you provide the workfile so we can run the code?

BCNAV
Posts: 40
Joined: Tue Oct 31, 2017 9:06 am

### Re: Eviews 10 Has Stopped Working

Here is the data in a workfile. I had to make this separately since the program would crash.
Attachments
GarethTest.WF1

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

### Re: Eviews 10 Has Stopped Working

To run the code we'll need some of the program variables defined. %history_end_date, %forecast_start_date, etc...

BCNAV
Posts: 40
Joined: Tue Oct 31, 2017 9:06 am

### Re: Eviews 10 Has Stopped Working

The program is attached

thanks...it was nice to see EViews in Boulder a few weeks back
Attachments
tower ifr vfr oos testing.prg

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

### Re: Eviews 10 Has Stopped Working

Was great being in Boulder. We love that conference.

The issue you're facing is a bug in EViews - we'll get it fixed. For what it is worth, it is during ETS smoothing of IFR_CYHC. I'll provide more details as we find them.

BCNAV
Posts: 40
Joined: Tue Oct 31, 2017 9:06 am

### Re: Eviews 10 Has Stopped Working

I think it could be more of a general problem, since it still occurs if I drop CYHC. In the bottom left of the screen it is at the Optimizing Model stage.

Hate to ask, but will the bug fix be somewhat quick as we need to get some forecasts done. See the screenshot attached.

Cheers!
Attachments
EViewsETS.jpg (347.59 KiB) Viewed 407 times

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

### Re: Eviews 10 Has Stopped Working

The bug is that some ETS models do not converge, and then the likelihood value is NA, and the graphing code doesn't like graphing NAs. You can make a temporary fix by changing:

Code: Select all

`freeze(mode=overwrite,{%series1}_{%series2}_stats) {%series1}_{%series2}_n.ets(e=e,t=e,s=e,modsel=aic,graph=cl,table=cl) forecast`

to be:

Code: Select all

`freeze(mode=overwrite,{%series1}_{%series2}_stats) {%series1}_{%series2}_n.ets(e=e,t=e,s=e,modsel=aic,graph=cl,table=cl, noconv) forecast`

Or, getting rid of the graph=cl option.

BCNAV
Posts: 40
Joined: Tue Oct 31, 2017 9:06 am

### Re: Eviews 10 Has Stopped Working

thanks....what is the noconv option?

I did not see it in the online manual:

http://www.eviews.com/help/helpintro.ht ... d-ets.html

cheers!!!

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

### Re: Eviews 10 Has Stopped Working

Reject non-converged models.