Bug in imcforecast.m?

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Bug in imcforecast.m?

Postby rdi611 » Mon Aug 03, 2009 3:48 am

Hi,

I am running the snapshot version of Dynare version 4.

I am trying to do conditional forecasting, as described here: http://www.dynare.org/DynareWiki/ConditionalForecast

I obtained the following error message:
Code: Select all
??? Input argument "missing_value" is undefined.

Error in ==> DsgeSmoother at 259
          if missing_value

Error in ==> imcforecast at 40
[atT,innov,measurement_error,filtered_state_vector,ys,trend_coeff] =
DsgeSmoother(xparam,gend,data);


Replacing line 40 in imcforecast.m with the following seems to solve the problem:
Code: Select all
[atT,innov,measurement_error,filtered_state_vector,ys,trend_coeff] =
DsgeSmoother(xparam,gend,data,[],0);


Is this a bug? Is my "mechanical solution" correct?

Thanks,

Riccardo
rdi611
 
Posts: 2
Joined: Tue Sep 18, 2007 9:01 pm

Re: Bug in imcforecast.m?

Postby StephaneAdjemian » Fri Aug 28, 2009 2:56 pm

Hi Riccardo, your solution is correct. I did forget to change this file when i introduced the possibility to estimate models with missing observations. I will fix this as soon as possible. Thanks for your bug report.

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 15 guests