expectation operator

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.

expectation operator

Postby yvette-hyq » Fri Sep 10, 2010 10:09 am

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.
yvette-hyq
 
Posts: 9
Joined: Fri Sep 10, 2010 9:51 am

Re: expectation operator

Postby jpfeifer » Sun Sep 12, 2010 7:31 am

Hi, you may want to post your mod-file and post, which Dynare version you are using.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: expectation operator

Postby yvette-hyq » Mon Sep 13, 2010 10:08 am

Here it is.
I am using 4.1.2 version.
Thank you.
Attachments
US_EU.mod
(6.92 KiB) Downloaded 207 times
yvette-hyq
 
Posts: 9
Joined: Fri Sep 10, 2010 9:51 am

Re: expectation operator

Postby SébastienVillemot » Mon Sep 13, 2010 2:06 pm

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,
Attachments
disp_dr.m
(6.21 KiB) Downloaded 180 times
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: expectation operator

Postby yvette-hyq » Wed Sep 15, 2010 7:52 am

:wink: It works well. Thank you so much.
yvette-hyq
 
Posts: 9
Joined: Fri Sep 10, 2010 9:51 am


Return to Dynare help

Who is online

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