DMtest - Diebold-Mariano Forecast Evaluation Test

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

AVossmeyer
Posts: 7
Joined: Fri Dec 20, 2013 3:48 pm

DMtest - Diebold-Mariano Forecast Evaluation Test

Postby AVossmeyer » Mon Jan 20, 2014 4:18 pm

This thread is about the add-in DMtest. This add-in carries out Diebold and Mariano's (1995) test for the equality of forecast accuracy of two forecasts. The add-in requests the user to input 2 equation objects, the forecast sample, and to select a loss function (squared or absolute). The output is a spool that includes a table of results which displays the Diebold-Mariano test statistic and a p-value, and graphs of the two forecasts.

Please let me know if there are any questions.

- Angela Vossmeyer

alok_fes
Posts: 9
Joined: Fri Feb 08, 2013 2:05 am

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby alok_fes » Mon Jan 20, 2014 7:56 pm

:D

ecofin
Posts: 182
Joined: Fri May 10, 2013 11:24 am

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby ecofin » Tue Jan 21, 2014 11:12 am

thanks alot for this Add-in :D , how to explain the results?.
best regards.

alok_fes
Posts: 9
Joined: Fri Feb 08, 2013 2:05 am

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby alok_fes » Wed Jan 22, 2014 9:25 am

Please provide option for modified dmtest

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

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby EViews Gareth » Wed Jan 22, 2014 9:28 am

What is "modified dmtest"?
Follow us on Twitter @IHSEViews

Annibal
Posts: 1
Joined: Tue Jan 21, 2014 2:48 pm

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby Annibal » Wed Jan 22, 2014 11:40 am

Hi, I'm transforming my dependent variable, let say "x", by taking the first difference, so it is equal to d(x,1). When I run the add-in, an error message appears: "Syntax error in "IF @OBSSMPL <> D(X,1).@OBS THEN".

Is there a way to overcome that error or It is not possible to work with dependente variables using functions like d(x,1).

Kind regards,

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

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby EViews Gareth » Wed Jan 22, 2014 12:27 pm

Should be able to fix that - stay tuned for an update.
Follow us on Twitter @IHSEViews

AVossmeyer
Posts: 7
Joined: Fri Dec 20, 2013 3:48 pm

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby AVossmeyer » Wed Jan 22, 2014 2:32 pm

Hi Annibal,

Thanks for bringing this to attention. The file has been updated and uploaded so this shouldn't be an issue anymore.

Let me know if there's anything else,

-Angela

AVossmeyer
Posts: 7
Joined: Fri Dec 20, 2013 3:48 pm

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby AVossmeyer » Wed Jan 22, 2014 2:37 pm

Hi ecofin, if the p-value is above your desired significance level, the results indicate that the researcher cannot reject the hypothesis of equal expected forecast error, or forecast accuracy. Hope this helps! - Angela

alok_fes
Posts: 9
Joined: Fri Feb 08, 2013 2:05 am

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby alok_fes » Tue Jan 28, 2014 4:16 am

Please tell how to run the addin as program line command

ecofin
Posts: 182
Joined: Fri May 10, 2013 11:24 am

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby ecofin » Tue Jan 28, 2014 7:48 am

hi, thanks for your reply
is that I understood H0: equal expected forecast error, alternative H1: not equal expected error.
I have simple suggestion to Add line vertical and horizontal in graph to show the point of forecast101 intercept forecat201, and estimate this point in out put.

Best regards.
Attachments
intercept_calc.png
intercept_calc.png (7.35 KiB) Viewed 40191 times
intercept forecast point.png
intercept forecast point.png (32.08 KiB) Viewed 40191 times

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

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby EViews Gareth » Tue Jan 28, 2014 9:09 am

Your case is somewhat specific. How do you know the two forecasts are going to have an intercept? How do you know that they are going to have just one? They could cross 15,000 times!
Follow us on Twitter @IHSEViews

ecofin
Posts: 182
Joined: Fri May 10, 2013 11:24 am

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby ecofin » Tue Jan 28, 2014 12:27 pm

hi
good question, I don't know but I have estime two models x c ar(1) the second x c ar(1) ar(2) for box-jenkins aire line passenger (just select 2 models for an example), I know They could cross 15,000 times. it is my mistake :oops: to understand that there are some models that can intercept in one point.

Best regards. ecofin

metrix
Posts: 57
Joined: Sun Dec 08, 2013 9:15 am

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby metrix » Mon Feb 24, 2014 6:56 am

hi
thanks for this Add-in 8) ,is this Add-in the Diebold and Mariano’s asymptotic test?, and can you write in the future an Add-in with four COMPARING FORECAST ERRORS OF DIFFERENT MODELS like:
1-Diebold and Mariano’s asymptotic test;
2-Diebold and Mariano’s sign test;
3-Diebold and Mariano’s Wilcoxon sign-rank test;
4-Serially correlated loss differentials.
the guide reference in book Chapter 2 A Practical Guide to Forecasting Financial Market Volatility, Ser-Huang Poon, John Wiley, pp 24-28.

Kind regards. metrix

AVossmeyer
Posts: 7
Joined: Fri Dec 20, 2013 3:48 pm

Re: DMtest - Diebold-Mariano Forecast Evaluation Test

Postby AVossmeyer » Wed Feb 26, 2014 11:46 am

Hi Metrix,
Yes, this add-in is for the asymptotic test. I will look into these other suggestions.
Thanks,
Angela


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 27 guests