Page 1 of 1

Error for NKM

PostPosted: Mon May 14, 2007 5:09 pm
by pkapinos
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
dynare_estimation(var_list_);

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!

PostPosted: Mon May 14, 2007 7:50 pm
by MichelJuillard
I need also the data file because the problem arises when Dynare attempts to read the data

Best

Michel

PostPosted: Mon May 14, 2007 9:30 pm
by pkapinos
Here's the data file.

Thank you so much,
Pavel

PostPosted: Tue May 15, 2007 4:20 am
by MichelJuillard
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

Best

Michel

PostPosted: Tue May 15, 2007 5:39 pm
by pkapinos
Thank you very much for your help; estimation does seem to work now.

Pavel

PROBLEM READING DATA FILE

PostPosted: Fri Jul 27, 2007 7:46 pm
by nsouzas
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
eval(dyn_instr_01);

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

Error in ==> bm_ce_1 at 184
dynare_estimation(var_list_);

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,