After DLM estimation, How to calculate forecast error?

Discussion of State Space and Dynamic Stochastic General Equilibrium Models
Jennylai
Posts: 35
Joined: Sun Feb 08, 2009 8:40 pm

After DLM estimation, How to calculate forecast error?

Unread post by Jennylai »

Dear Tom,

May I ask a question about how to calculate the forecast error of a State space model I estimated using DLM?
For example, I want to calculate the forecast errors from the two models I estimated using Durkp162.r where one model with no explanatory variables and the other has some explanatory variables included. How should I perform such a calculation if I want to do some forecast ability comparation between models? Is there any example code that I could take some reference from?

Thank you very much!
Post Reply