How to combine univar. & conditional model for forecast

For questions regarding programming in the EViews programming language.

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

Veuve
Posts: 9
Joined: Thu Sep 29, 2011 4:24 am

How to combine univar. & conditional model for forecast

Postby Veuve » Fri Oct 21, 2011 2:58 pm

How can I combine a univariate & conditional model for static and dynamic forecast and generate its MSFE ?

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

How to combine univar. & conditional model for forecast

Postby EViews Gareth » Fri Oct 21, 2011 3:06 pm

Could you explain what you mean a bit more thoroughly?
Follow us on Twitter @IHSEViews

Veuve
Posts: 9
Joined: Thu Sep 29, 2011 4:24 am

Re: How to combine univar. & conditional model for forecast

Postby Veuve » Fri Oct 21, 2011 3:58 pm

Sure...

I do have a univariate Model: (dlog(x)) c @seas(1) @seas(2) @seas(3) @trend

and a conditional model: (dlog(x)) c dlog(x(-1)) dlog(y) dlog(y(-1)) dlog(z) dlog(z(-1)) @seas(1) @seas(2) @seas(3) @trend

Now I would like to combine these models in bivariate way for S and D forecast and compare the different output and MSFE

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

Re: How to combine univar. & conditional model for forecast

Postby EViews Gareth » Fri Oct 21, 2011 4:41 pm

Sorry, still don't understand.

How do you want to combine them?
Follow us on Twitter @IHSEViews

Veuve
Posts: 9
Joined: Thu Sep 29, 2011 4:24 am

Re: How to combine univar. & conditional model for forecast

Postby Veuve » Sat Oct 22, 2011 1:28 am

Thx for your fast answers & sorry for the confusion.

I want to evaluate the S&D forecast of each model.

e.g.

FORECAST A: Model1 static forecast vs Model2 static forecast

FORECAST B: Model1 dynamic forecast vs Model2 dynamic forecast

Now, to compare the acuracy I want to focus on MSFE, however I do not know how to get the MSFE of each model and how to compare it. :(

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

How to combine univar. & conditional model for forecast

Postby EViews Gareth » Sat Oct 22, 2011 10:01 am

When you forecast from an equation in EViews, it tells you the MSE of the forecast. Or, you can use the @rmse function.
Follow us on Twitter @IHSEViews

Veuve
Posts: 9
Joined: Thu Sep 29, 2011 4:24 am

Re: How to combine univar. & conditional model for forecast

Postby Veuve » Sat Oct 22, 2011 3:42 pm

ok thx and how can I compute the MSFE within a VAR model?
Because its not given as in Multi or Univariate models....

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

Re: How to combine univar. & conditional model for forecast

Postby EViews Gareth » Sat Oct 22, 2011 7:54 pm

How are you forecasting from the VAR?
Follow us on Twitter @IHSEViews

Veuve
Posts: 9
Joined: Thu Sep 29, 2011 4:24 am

Re: How to combine univar. & conditional model for forecast

Postby Veuve » Sun Oct 23, 2011 2:05 am

I know how to forecast from the VAR, but I dont know how I can get the MSFE from a forecasted VAR model because its not given as with regular forecast of UNI and MULTIvariate models.

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

How to combine univar. & conditional model for forecast

Postby EViews Gareth » Sun Oct 23, 2011 8:35 am

Ok, then use @rmse
Follow us on Twitter @IHSEViews

hakkim
Posts: 3
Joined: Sun Oct 23, 2011 12:13 pm

Re: How to combine univar. & conditional model for forecast

Postby hakkim » Sun Oct 23, 2011 1:35 pm

i think the question veuve asks above about forecast comparison is more specifically about forecast encompassing. So for example if I have calculated for my series of GDP a univariate, conditional, and VAR model, I want to check whether one forecast incorporates all the relevant information in competing forecasts or if a bivariate combination of forecasts are able to give a more accurate result.

According to Diebold (2007, p.264), one can only gain something from combining forecasts if no forecasts incorporates all the relevant information already, i.e. no forecast is encompassing the other.
Thus before combining the forecasts one has to test whether one forecast is encompassing the other or not?

In other words I regress the 2 forecasts I want to combine on the actual values of GDP. Afterwards I test whether one of the coefficients is equal to 1 and the other equal to 0, in which case the first forecast would encompass the latter, so there shouldn’t be gains from combining the forecasts.

But the question here is how do I do this on EViews?

Any help will be really appreciated?

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

Re: How to combine univar. & conditional model for forecast

Postby EViews Gareth » Sun Oct 23, 2011 2:40 pm

Veuve's question was a lot more vague than yours, but it is possible that that is what he is asking.

Anyhow, to perform the steps you outline, you pretty much follow the steps you outline. Create the two forecast series (either from an equation or from a VAR (using the VAR forecast add-in, or via a model)), then regress them on the actual values using another equation. Then perform a Wald test of whether a coefficient is equal to 1.
Follow us on Twitter @IHSEViews

hakkim
Posts: 3
Joined: Sun Oct 23, 2011 12:13 pm

Re: How to combine univar. & conditional model for forecast

Postby hakkim » Sun Oct 23, 2011 3:15 pm

hey gareth,

that is exactly what i did.

But the problem is that every possible combination I regress on GDP, e.g. unidyn - condyn, unistat - constat, unidyn-vardyn, etc., results in either ß1=1 and ß2=0, e.g. unidyn encompasses condyn. Thus, I have no possible gains from a combination. Is that possible or did I do something wrong in my forecast?

I further want to calculate the RMSE from my combined models using the arithmetic average of forecasts and the RMSE from combined models using the weighted arithmetic average. To find the weights, I used the formula from Diebold (2007, p.267). How can I do this on EViews?

I have to add that this is one of the coolest programs ever. Thank you guys for a great job.

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

Re: How to combine univar. & conditional model for forecast

Postby EViews Gareth » Sun Oct 23, 2011 3:41 pm

I don't know enough about the process you are describing to be able to comment on what you might or might not have done wrong.

However, as long as you have two series, you can easily compute the RMSE using the @rmse function.
Follow us on Twitter @IHSEViews

hakkim
Posts: 3
Joined: Sun Oct 23, 2011 12:13 pm

Re: How to combine univar. & conditional model for forecast

Postby hakkim » Sun Oct 23, 2011 3:45 pm

Where do I have to type in the @rmse funtion?

this doesnt work: ls gdp constat unistat @rmse


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 31 guests