Error for NKM

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.

Error for NKM

Postby pkapinos » Mon May 14, 2007 5:09 pm

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!
Attachments
flexw.mod
(956 Bytes) Downloaded 175 times
pkapinos
 
Posts: 5
Joined: Sun Sep 18, 2005 8:16 pm

Postby MichelJuillard » Mon May 14, 2007 7:50 pm

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

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby pkapinos » Mon May 14, 2007 9:30 pm

Here's the data file.

Thank you so much,
Pavel
Attachments
flexw_data.xls
(19.5 KiB) Downloaded 137 times
pkapinos
 
Posts: 5
Joined: Sun Sep 18, 2005 8:16 pm

Postby MichelJuillard » Tue May 15, 2007 4:20 am

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
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby pkapinos » Tue May 15, 2007 5:39 pm

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

Pavel
pkapinos
 
Posts: 5
Joined: Sun Sep 18, 2005 8:16 pm

PROBLEM READING DATA FILE

Postby nsouzas » Fri Jul 27, 2007 7:46 pm

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,
Attachments
simuldataBASIC.xls
(13.5 KiB) Downloaded 114 times
nsouzas
 
Posts: 16
Joined: Fri Jun 29, 2007 1:16 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests