Diebold Mariano Loss Differential

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

nikieb
Posts: 8
Joined: Sun Mar 30, 2014 12:30 am

Diebold Mariano Loss Differential

Postby nikieb » Tue Apr 22, 2014 11:37 am

A very short, and probably simple question.

I have estimated the RW, ARIMA, VAR and VEC models according to all criteria to forecast inflation with eviews 7.

My next step is to compare the models using the Diebold Mariano test.

I have manually calculated the mean loss differential of 8 periods ahead, and I am interested in t=1 t=4 and t=8.

Now i have to regress a one period differential against a constant to find the t-stat, but i honestly do not know how i can regress only 1 period. E.g. only quarter 1 4 or 8. I calculate everything via the menu, not via a written program. What is the sample range? Should I try sample "3 4" for quarter 4? Filling in quarter 4 4 does not work.

I know the question sounds silly after doing all the prior work, but it just does not work out.

Thank you!

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Diebold Mariano Loss Differential

Postby EViews Glenn » Sat Apr 26, 2014 7:58 am

I suspect the reason there hasn't been an answer to this question is that there's really not enough information on the kind of data that the user has, nor is it clear (at least to me), the exact task to be performed. If you could provide additional information, that might help.

nikieb
Posts: 8
Joined: Sun Mar 30, 2014 12:30 am

Re: Diebold Mariano Loss Differential

Postby nikieb » Sun Apr 27, 2014 12:55 am

Hi Glenn,

I am forecasting the inflation rate for Japan. I use four models for this, the VAR VEC Random Walk and ARIMA model. I have done this already. To be able to compare the models in terms of performance, I want to perform the Diebold Mariano test. This test is a regression of the loss differential to a constant, and I have calculated the loss differential (difference between the error terms of 2 models). I have forecasts for 8 subsequent quarters, and q 1 4 and 8 are of interest to me.
My question is: how can i regress one specific quarter? How should I enter this in Eviews? When estimating an equation, should the time frame (sample) for quarter 1 be "0 1" and for q4 and q8 "3 4" and "7 8"?

I only want to use the number associated with one particular quarter for regression, but I dont know how i can only include this single number, that is my problem.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Diebold Mariano Loss Differential

Postby EViews Glenn » Sun Apr 27, 2014 9:01 am

If I understand correctly, just set the sample of observations to be used prior to performing a specific regression. Something like

Code: Select all

smpl if @quarter=1 equation eq01q1.ls y c x
or

Code: Select all

smpl if @quarter=1 or @quarter=3 equation eq01q1and3.ls y c x
For details, look at the discussion of the smpl command in the docs.

nikieb
Posts: 8
Joined: Sun Mar 30, 2014 12:30 am

Re: Diebold Mariano Loss Differential

Postby nikieb » Sun Apr 27, 2014 9:53 am

Dear Glenn,

I think that you indeed understood what i meant.
However, now I receive an error that there are no observations and another error. It really must be one of the simplest things to do in Eviews. I have attached an example of a workfile, it is '"av" that I am trying to regress against a constant. For time 1, 4 and 8.
Could you please help me out?
Attachments
dm2.wf1
(10.61 KiB) Downloaded 188 times

nikieb
Posts: 8
Joined: Sun Mar 30, 2014 12:30 am

Re: Diebold Mariano Loss Differential

Postby nikieb » Sun Apr 27, 2014 10:35 am

It worked for the first quarter just now, but when I reach t=8, i receive the message 'insuffient number of observations'. There are 2 observations required for every regression, so for t=1 is quarter 1 and 2, for t=4 is quarter 4 and 5, and t=8 quarter 8 and 9? If so, I dont have a ninth observation.

nikieb
Posts: 8
Joined: Sun Mar 30, 2014 12:30 am

Re: Diebold Mariano Loss Differential

Postby nikieb » Sun Apr 27, 2014 8:04 pm

Basically I just need the t-statistics of quarter 1 4 and 8 individually, that is all.

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

Re: Diebold Mariano Loss Differential

Postby EViews Gareth » Sun Apr 27, 2014 8:55 pm

Your posts are very confusing.

Glenn's answer assumed that you had dated data (monthly or weekly). You do not. Your workfile has 8 observations. I'm assuming they are ordered by the "quarter" variable. Glenn's smpl if @quarter suggestion only works on dated data.

You say you want to run a regression for quarter 1. You only have a single observation when quarter=1. You want to run a regression with a single observation. That makes no mathematical sense. Even if you are just regressing against a constant, all you will do is set the coefficient identically equal to the value of the dependent variable. Equally, you only have one observation for 4 and 8. You cannot run regressions with only a single observation.

nikieb
Posts: 8
Joined: Sun Mar 30, 2014 12:30 am

Re: Diebold Mariano Loss Differential

Postby nikieb » Sun Apr 27, 2014 9:10 pm

The data included is indeed quarterly data, and it is the average loss differential. The purpose of the Diebold Mariano model is to compare 2 models and to determine which is best in forecasting. I have to find the accompanying t-statistic of the loss differential at those different time frames (t=1,4, 8) at a 5% significance level.

If a regression does not make sense, do you a suggestion how it could be done?


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests