question about examples in the User Guide

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.

question about examples in the User Guide

Postby learnbydoing » Sat Jan 15, 2011 3:18 am

Hi,

I download the codes for the examples in the User Guide.
(http://www.dynare.org/documentation-and ... s.zip/view)
When I ran fs2000ns.mod, I got the following error:
-------------------------error starts-------------------------------------
??? Undefined function or variable "F".

Error in ==> DiffuseKalmanSmoother1_Z at 136
Pstar(:,:,t+1) =
T*Pstar(:,:,t)*T'-T*Pstar(:,:,t)*Z'*Kinf(:,:,t)'-Kinf(:,:,t)*F*Kstar(:,:,t)'
+ QQ;

Error in ==> DsgeSmoother at 282
[alphahat,etahat,ahat,P,aK,PK,d,decomp] =
DiffuseKalmanSmoother1_Z(ST, ...

Error in ==> dynare_estimation_1 at 1094
[atT,innov,measurement_error,updated_variables,ys,trend_coeff,aK,T,R,P,PK,decomp]
=
DsgeSmoother(xparam1,gend,data,data_index,missing_value);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> fs2000ns at 175
dynare_estimation(var_list_);

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

How to fix it? Thanks.
Attachments
fs2000ns.zip
(4.11 KiB) Downloaded 168 times
learnbydoing
 
Posts: 2
Joined: Fri Jan 14, 2011 9:30 pm

Re: question about examples in the User Guide

Postby SébastienVillemot » Thu Jan 20, 2011 7:11 pm

This is a bug in Dynare which was fixed in one of the latest releases. Please upgrade to 4.1.3.

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: question about examples in the User Guide

Postby learnbydoing » Thu Jan 20, 2011 7:53 pm

seems like I am using dynare whose version is 4.1.3. My matlab is 2008b and 2010b.

SébastienVillemot wrote:This is a bug in Dynare which was fixed in one of the latest releases. Please upgrade to 4.1.3.

Best,
learnbydoing
 
Posts: 2
Joined: Fri Jan 14, 2011 9:30 pm

Re: question about examples in the User Guide

Postby SébastienVillemot » Fri Jan 21, 2011 3:12 pm

Sorry you're right, the bug is fixed in unstable but not in Dynare 4.1.3.

Until a new stable version is released, please use the attached version of the file “DiffuseKalmanSmoother1_Z.m” that you should put in the “matlab” subdirectory of your Dynare installation.
Attachments
DiffuseKalmanSmoother1_Z.m
(7.99 KiB) Downloaded 394 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: question about examples in the User Guide

Postby lee » Fri Jun 03, 2011 5:34 pm

Dear Stephan
I use matlab7.10.0,Dynare 2011-06-01 version,but the fs2000ns code don't work. The wrong is as fowllow:
Error in computing likelihood for initial parameter values
??? Error using ==> print_info at 39
Blanchard Kahn conditions are not satisfied: no stable equilibrium

Error in ==> initial_estimation_checks at 101
print_info(info, options_.noprint)

Error in ==> dynare_estimation_1 at 122
initial_estimation_checks(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> fs2000ns at 176
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;
lee
 
Posts: 5
Joined: Wed Apr 27, 2011 11:15 am

Re: question about examples in the User Guide

Postby igpwira » Sun Jun 05, 2011 11:40 pm

Dear Stephan,

I also found the same error as Lee found (Jun 03, 2011 5:34pm) when run fs2000ns code. Would it be possible to explain why this happened, please?
Many thanks.
Wira
igpwira
 
Posts: 6
Joined: Wed May 25, 2011 12:31 pm

Re: question about examples in the User Guide

Postby jpfeifer » Mon Jun 06, 2011 9:37 am

Hi, set lik_init=2 in the estimation command.
------------
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: question about examples in the User Guide

Postby lee » Mon Jun 06, 2011 5:55 pm

jpfeifer wrote:Hi, set lik_init=2 in the estimation command.

Thank you very much for your replying.But I add the option 'diffuse_filter', the code also work.Is there difference between the option diffuse_filter and lik_init? which is better to the unstable model?
Many thanks in advance!
lee
 
Posts: 5
Joined: Wed Apr 27, 2011 11:15 am

Re: question about examples in the User Guide

Postby SébastienVillemot » Tue Aug 23, 2011 3:18 pm

Actually the "diffuse_filter" option was missing in this example from the User Guide. This will be fixed in the next draft of the guide.

Thanks
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests