strmatch Error

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.

strmatch Error

Postby Danielb » Fri Feb 24, 2012 1:24 pm

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!
Attachments
daniel.mod
(3.32 KiB) Downloaded 124 times
Base1.xls
(32 KiB) Downloaded 121 times
Danielb
 
Posts: 4
Joined: Fri Feb 24, 2012 1:17 pm

Re: strmatch Error

Postby jpfeifer » Fri Feb 24, 2012 3:26 pm

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);
------------
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: strmatch Error

Postby Danielb » Fri Feb 24, 2012 5:57 pm

Perfect! Man, you have no idea of your help. Thanks a lot!
Danielb
 
Posts: 4
Joined: Fri Feb 24, 2012 1:17 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests