Error for NKM

I’m trying to estimate a simple New Keynesian model but get this error message when I try to run the file:

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

Error in ==> read_variables at 35
iv = strmatch(var_names_01(dyn_i_01,:),raw(1,:),‘exact’);

Error in ==> dynare_estimation at 170
rawdata = read_variables(options_.datafile,options_.varobs,],options_.xls_sheet,options_.xls_range);

Error in ==> flexw at 129

Error in ==> dynare at 49
evalin(‘base’,fname) ;

The estimation part follows mod1a.mod, so I don’t understand why the error pops up.

I’d really appreciate any help–thank you!
flexw.mod (956 Bytes)

I need also the data file because the problem arises when Dynare attempts to read the data



Here’s the data file.

Thank you so much,
flexw_data.xls (19.5 KB)

the first line of the Excel file must contiain the name of the variables. These names must be exactly the same as in the *.mod file



Thank you very much for your help; estimation does seem to work now.


Hello, dynare is not reading my datafile and gives me the following message each time I try to estimate the model:

??? Error using ==> load
Unable to read file simuldataBASIC: No such file or directory.

Error in ==> read_variables at 16

Error in ==> dynare_estimation at 75
rawdata = read_variables(options_.datafile,options_.varobs,]);

Error in ==> bm_ce_1 at 184

Error in ==> dynare at 26
evalin(‘base’,fname) ;

Of course, the file is in the right directory, the variables are named correctly and the file extension is appropriate (I am using an excel file). Please, see the file attached.

What else could it be? I really appreciate your help.

Best regards,
simuldataBASIC.xls (13.5 KB)