Programming Dynamic Forecasts for Models

For questions regarding programming in the EViews programming language.

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

Chris_Ger
Posts: 10
Joined: Fri Jul 16, 2010 7:53 am

Programming Dynamic Forecasts for Models

Postby Chris_Ger » Sun Jul 18, 2010 12:19 am

Hello everybody,

I would like to know, how to program dynamic forecasting (out of sample forecasts) for a model in Eviews 7. My questions in detail:

There is a system of equations or a var object which has been transformed into a model. According to the Eviews manuals you can set the smpl to the estimation period and afterwards set the sample to the forecast period (e.g. forecast-smpl n=2 years -> forecast period is two years) and Eviews will provide dynamic forecasts based the model. These forecasts are shown in a graph.

(1) How can I save the forecasted data in a vector or series in order to use this data for further processing (RSME etc.) in a program?

(2) There is the "forecast" function [eq1.forecast (options) ...] for dynamic forecasts based on equations , but it does not work for models. Is there any comparable function for models which I can apply in Eviews programming?

(3) Given there is no solution to store the data or a comparable function to the "forecast"-function for equations I will have to program the dynamic forecast on my own. My idea is to estimate the model in the estimation smpl, extract the coefficients from the model and calculate the forecasts step by step based on the coefficients. These seems pretty complicated, so maybe someone has a better idea?

Thank you very much and best regards,

Chris

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

Re: Programming Dynamic Forecasts for Models

Postby EViews Glenn » Mon Jul 19, 2010 9:38 am

I'm not quite certain why you think the model won't compute the dynamic forecasts. It certainly does. In point of fact, the model solution options are a superset of those for the forecast.

Chris_Ger
Posts: 10
Joined: Fri Jul 16, 2010 7:53 am

Re: Programming Dynamic Forecasts for Models

Postby Chris_Ger » Mon Jul 19, 2010 9:54 am

Thank you very much, so my understanding is:

1.) model.solve will generate dynamic forecasts (answer to question 2)

2.) the forecast period is set by "smpl"

3.) forecasted parameters are stored in "series"_0 (answer to question 1)

I think I did not correctly understand the "solve" command

Thanks again and best regards

Chris


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests