Page 1 of 1

Not enough input arguments

PostPosted: Thu Feb 13, 2014 7:58 am
by yy1985
Dear Everyone:
When I running the [dsgevar_forward_calibrate_lambda.mod ] file in dynare,
I'm in trouble, don't know how to solve it. it is coming up with the following
message:

??? Error using ==> pie
Not enough input arguments.

Error in ==> read_variables at 72
dyn_tmp_01 = eval(var_names_01(dyn_i_01,:));

Error in ==> initialize_dataset at 32
rawdata = read_variables(datafile,varobs,[],xls.sheet,xls.range);

Error in ==> dynare_estimation_init at 347
dataset_=initialize_dataset(options_.datafile,options_.varobs,options_.first_obs,options_.nobs,transformation,options_.prefilter,xls);

Error in ==> dynare_estimation_1 at 59
[dataset_,xparam1,M_,options_,oo_,estim_params_,bayestopt_]=dynare_estimation_init (var_list_, dname, [], M_, options_, oo_, estim_params_, bayestopt_);

Error in ==> dynare_estimation at 70
dynare_estimation_1(var_list,dname);

Error in ==> dsgevar_forward_calibrate_lambda at 235
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;

I really hope someone can help me to explain what's gone wrong?
Thanks
Yun
2014-2-13

the dsgevar_forward_calibrate_lambda.mod file attachment as follows:

Re: Not enough input arguments

PostPosted: Thu Feb 13, 2014 9:09 am
by jpfeifer
This is a naming conflict with Matlab's function "pie" for producing pie charts. The easiest solution would be to just rename the variable.

Re: Not enough input arguments

PostPosted: Thu Feb 13, 2014 11:25 am
by yy1985
Dear professor pfeifer:
thank you very much for your help me to solve this problems! Under the guidance of you,I know how to solve it.
best wishes to you!
yun
2014-2-13

Re: Not enough input arguments

PostPosted: Fri Feb 14, 2014 10:57 am
by jpfeifer
The fundamental problem was a path conflict, see http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5351

Re: Not enough input arguments

PostPosted: Fri Feb 14, 2014 11:06 am
by yy1985
Thank you very much,dear professor pfeifer!
yun