Page 1 of 1

strmatch Error

PostPosted: Fri Feb 24, 2012 1:24 pm
by Danielb
Please, i'm trying to run a model, that i run before. Don't know why, but now apears this error:

??? Error using ==> cell.strmatch at 21
Requires character array or cell array of strings as inputs.

Error in ==> read_variables at 74
iv = strmatch(var_names_01(dyn_i_01,:),raw(1,:),'exact');

Error in ==> dynare_estimation_init at 289
rawdata = read_variables(options_.datafile,options_.varobs,[],options_.xls_sheet,options_.xls_range);

Error in ==> dynare_estimation_1 at 37
[data,rawdata,xparam1] = dynare_estimation_init(var_list_);

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

Error in ==> daniel at 288
dynare_estimation(var_list_);

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


As an attachment you find my mod file and the excel file with the data. Thanks for your help!

Re: strmatch Error

PostPosted: Fri Feb 24, 2012 3:26 pm
by jpfeifer
There are some invisible entries in columns G and H. Define xls_range to avoid Dynare reading them, i.e. use:
Code: Select all
estimation(datafile=Base1,mh_replic=50000,mh_nblocks=10,mode_compute=6,mode_check,xls_range=A1:F112);

Re: strmatch Error

PostPosted: Fri Feb 24, 2012 5:57 pm
by Danielb
Perfect! Man, you have no idea of your help. Thanks a lot!