Expectation shock codes

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 shock codes

Postby ecyng » Wed Oct 26, 2011 6:32 am

I use Dynare 4.2.2 to run the model in Fujiwara and Kang (2008) "Expectation Shock Simulation with Dynare: Mark II":
(1) type "dynare pigoucycle"
(2) Then run the file "expectation_shock.m".

The following errors appear:

??? Error using ==> feval
Undefined function or method '_fff' for input arguments of type 'double'.

Error in ==> resol_es at 39
if max(abs(feval(fh,ys))) > dynatol_ & options_.olr == 0

Error in ==> stoch_simul_es at 47
[dr_,info,jacobiamat] = resol_es(ys_,0);

Error in ==> expectation_shock at 25
[info,jacobimat]=stoch_simul_es(var_list_); % To obtain Jacobian matrix

I appreciate very much if the above problems can be solved. Please find the attached key files for reference. The full toolkit files can be downloaded from: http://ideas.repec.org/c/dge/qmrbcd/163.html

Thanks for your attention.
Attachments
pigoucycle.mod
(2.19 KiB) Downloaded 111 times
expectation_shock.m
(22.68 KiB) Downloaded 323 times
stoch_simul_es.m
(12.15 KiB) Downloaded 121 times
resol_es.m
(1.82 KiB) Downloaded 320 times
ecyng
 
Posts: 5
Joined: Sun Apr 25, 2010 9:12 pm

Re: Expectation shock codes

Postby SébastienVillemot » Fri Nov 18, 2011 9:15 am

Hi,

It looks like this code has been written for Dynare version 3.

This is an old version that we no longer support.

Best,
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 shock codes

Postby huangjing2122 » Wed Feb 29, 2012 9:09 am

I tried Version 3, the following errors appear:

??? Error using ==> dynare at 19
syntax error at line 29

Can someone hlep me to fix it?
Thanks a lot!
huangjing2122
 
Posts: 3
Joined: Tue Feb 28, 2012 1:00 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron