What's wrong of dynare example code

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.

What's wrong of dynare example code

Postby xujh03 » Wed Apr 21, 2010 7:01 pm

In the dynare user guide, there is an example code called fs2000. But when I run this code, it is said


??? Error using ==> NaN
Too many input arguments.

Error in ==> d:\time_series\jplv7\4.1.1\matlab\set_prior.m
On line 141 ==> bayestopt_.p6 = NaN(size(bayestopt_.p1)) ;

Error in ==> d:\time_series\jplv7\4.1.1\matlab\dynare_estimation_1.m
On line 83 ==> [xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_);

Error in ==> d:\time_series\jplv7\4.1.1\matlab\dynare_estimation.m
On line 62 ==> dynare_estimation_1(var_list,varargin{:});

Error in ==> D:\time_series\jplv7\dyn_mat_v3_065\dynare_v3\examples\fs2000\fs2000.m
On line 184 ==> dynare_estimation(var_list_);

Error in ==> d:\time_series\jplv7\4.1.1\matlab\dynare.m
On line 132 ==> evalin('base',fname) ;

Is there anyone who can tell me why this code is wrong? Thank you
Attachments
fsdat.m
data
(4.52 KiB) Downloaded 72 times
fs2000.mod
code
(2.65 KiB) Downloaded 79 times
xujh03
 
Posts: 9
Joined: Sat Jan 30, 2010 2:39 pm

Re: What's wrong of dynare example code

Postby jpfeifer » Fri Apr 23, 2010 7:21 pm

When I run the code you posted, everythings works just fine. Did you install Dynare correctly? Or did you change anything in your code, particularly the priors where the issue seems to occur?
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests