Page 1 of 1

expectation operator

PostPosted: Fri Sep 10, 2010 10:09 am
by yvette-hyq
Hi, I am new in Dynare, and trying to run a model with a code I put down like this:
expectation(-1)(pi2).
That would be the current period inflation expectation using last period information set.
But is shows the Error:

??? Error using ==> disp_dr>subst_auxvar at 232
Invalid auxiliary type: AUX_EXPECT_LAG_1_151

Error in ==> disp_dr at 101
str1 = subst_auxvar(k1(klag(k,1)),klag(k,2)-M_.maximum_lag-2);

Error in ==> stoch_simul at 68
disp_dr(oo_.dr,options_.order,var_list);

Error in ==> US_EU at 544
info = stoch_simul(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;

I have no idea what is wrong here. Can anyone help me out? Thank you.

Re: expectation operator

PostPosted: Sun Sep 12, 2010 7:31 am
by jpfeifer
Hi, you may want to post your mod-file and post, which Dynare version you are using.

Re: expectation operator

PostPosted: Mon Sep 13, 2010 10:08 am
by yvette-hyq
Here it is.
I am using 4.1.2 version.
Thank you.

Re: expectation operator

PostPosted: Mon Sep 13, 2010 2:06 pm
by SébastienVillemot
Hi,

This is a bug in Dynare which will be fixed in the next release.

In the meantime, I attach a new version of the “disp_dr.m” file, that you should put in c:\dynare\4.1.2\matlab (if under Windows), and which fixes the problem.

Best,

Re: expectation operator

PostPosted: Wed Sep 15, 2010 7:52 am
by yvette-hyq
:wink: It works well. Thank you so much.