Expectation operator

Hi, I am new in Dynare, and trying to run a model with a code I put down like this:
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

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.

Hi, you may want to post your mod-file and post, which Dynare version you are using.

Here it is.
I am using 4.1.2 version.
Thank you.
US_EU.mod (6.92 KB)


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.

disp_dr.m (6.21 KB)

:wink: It works well. Thank you so much.