Theil Statistics Programme Command

For questions regarding programming in the EViews programming language.

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

Saakshi
Posts: 24
Joined: Fri Jun 10, 2016 10:23 am

Theil Statistics Programme Command

Postby Saakshi » Mon Jun 24, 2019 3:42 pm

Hello everyone,

Can someone really help me out? I badly need help!

I am doing out-of-sample forecast. Following is my program:
gg_outsmpl.prg
Out-of Sample Forecast for H horizon
(3.16 KiB) Downloaded 537 times
As a forecast evaluation test, I also want to check the Theil statistics. I have tried with @theil command but is unable to find the appropriate result.

Please help me out with the problem.

Best,
Saakshi

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

Re: Theil Statistics Programme Command

Postby EViews Gareth » Mon Jun 24, 2019 3:57 pm

All of the forecast evaluation type statistics (@rmse, @mse, @mape, @smape, @theil) work as:

Code: Select all

!mystat = @theil(y_actual, y_forecast)
where y_* are series objects.

Saakshi
Posts: 24
Joined: Fri Jun 10, 2016 10:23 am

Re: Theil Statistics Programme Command

Postby Saakshi » Mon Jun 24, 2019 4:17 pm

Hello Gareth, thank you for help.

I did post the command but was unable to generate the result. Following is the command file. Kindly let me know where am I making mistake.
gg_outsmpl_trial.prg
(3.23 KiB) Downloaded 647 times
Gareth, I am very new to the command program, so kindly help me out this.

Thanks,
Saakshi

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

Re: Theil Statistics Programme Command

Postby EViews Gareth » Mon Jun 24, 2019 4:36 pm

You don't appear to be storing the theil statistic anywhere.

Saakshi
Posts: 24
Joined: Fri Jun 10, 2016 10:23 am

Re: Theil Statistics Programme Command

Postby Saakshi » Mon Jun 24, 2019 4:53 pm

HORIZON h=1 h=2 h=3 h=4
Bias 0.522 1.026 1.434 1.591
MSE 3.136 5.300 8.923 12.197
RMSE 1.771 2.302 2.987 3.492
SE 1.692 2.061 2.620 3.109
MAE 1.486 2.000 2.466 2.525
MAPE 0.664 1.051 0.910 0.648
THEIL 0.000 0.000 0.000 0.000

This is my result window.

Saakshi
Posts: 24
Joined: Fri Jun 10, 2016 10:23 am

Re: Theil Statistics Programme Command

Postby Saakshi » Mon Jun 24, 2019 5:03 pm

You don't appear to be storing the theil statistic anywhere.
Where should I store the statistics ideally?
Am I missing something here?

Saakshi
Posts: 24
Joined: Fri Jun 10, 2016 10:23 am

Re: Theil Statistics Programme Command

Postby Saakshi » Mon Jun 24, 2019 5:09 pm

Hello, I understand this must be a very simple question but I am in the learning phase and I badly need your help.

kindly help!

Saakshi
Posts: 24
Joined: Fri Jun 10, 2016 10:23 am

Re: Theil Statistics Programme Command

Postby Saakshi » Tue Jun 25, 2019 2:05 am

All of the forecast evaluation type statistics (@rmse, @mse, @mape, @smape, @theil) work as:

Code: Select all

!mystat = @theil(y_actual, y_forecast)
where y_* are series objects.
Hi Gareth,

I am trying to write following command for Theil. Could kindly you tell me what mistake is in this?
THEIL=@sqrt(RMSE)/@sqrt({%v}-{%v}(-1))*@sqrt({%v_f}-{%v_f}(-1))

Thanks,
Saakshi

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

Re: Theil Statistics Programme Command

Postby EViews Gareth » Tue Jun 25, 2019 7:27 am

I see nothing wrong.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests