Page 1 of 1

question about examples in the User Guide

PostPosted: Sat Jan 15, 2011 3:18 am
by learnbydoing
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.

Re: question about examples in the User Guide

PostPosted: Thu Jan 20, 2011 7:11 pm
by SébastienVillemot
This is a bug in Dynare which was fixed in one of the latest releases. Please upgrade to 4.1.3.

Best,

Re: question about examples in the User Guide

PostPosted: Thu Jan 20, 2011 7:53 pm
by learnbydoing
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,

Re: question about examples in the User Guide

PostPosted: Fri Jan 21, 2011 3:12 pm
by SébastienVillemot
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.

Re: question about examples in the User Guide

PostPosted: Fri Jun 03, 2011 5:34 pm
by lee
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) ;

Re: question about examples in the User Guide

PostPosted: Sun Jun 05, 2011 11:40 pm
by igpwira
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

Re: question about examples in the User Guide

PostPosted: Mon Jun 06, 2011 9:37 am
by jpfeifer
Hi, set lik_init=2 in the estimation command.

Re: question about examples in the User Guide

PostPosted: Mon Jun 06, 2011 5:55 pm
by lee
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!

Re: question about examples in the User Guide

PostPosted: Tue Aug 23, 2011 3:18 pm
by SébastienVillemot
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