by Nice » Thu Nov 13, 2014 4:39 pm
Additionally, I have tried to load the file as a .mat file AND .xls and it does not work either. For some reason it cannot match or recognize the observable variables in the data file.
I get the following error message:
You did not declare endogenous variables after the estimation/calib_smoother command.
Loading 193 observations from data.mat
Index exceeds matrix dimensions.
Error in initialize_dataset (line 58)
rawdata = rawdata(first:(first+dataset_.info.ntobs-1),:);
Error in dynare_estimation_init (line 322)
dataset_ =
initialize_dataset(options_.datafile,options_.varobs,options_.first_obs,options_.nobs,transformation,options_.prefilter,xls);
Error in dynare_estimation_1 (line 59)
[dataset_,xparam1, M_, options_, oo_, estim_params_,bayestopt_] =
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_,
estim_params_, bayestopt_);
Error in dynare_estimation (line 70)
dynare_estimation_1(var_list,dname);
Error in leeper_closed_est (line 503)
dynare_estimation(var_list_);
Error in dynare (line 120)
evalin('base',fname) ;
>>
when I ask dynare to read the file as a .xls file I get the following error:
You did not declare endogenous variables after the estimation/calib_smoother command.
Error using cell/strmatch (line 20)
Requires character array or cell array of strings as inputs.
Error in read_variables (line 74)
iv = strmatch(var_names_01(dyn_i_01,:),raw(1,:),'exact');
Error in initialize_dataset (line 31)
rawdata = read_variables(datafile,varobs,[],xls.sheet,xls.range);
Error in dynare_estimation_init (line 322)
dataset_ =
initialize_dataset(options_.datafile,options_.varobs,options_.first_obs,options_.nobs,transformation,options_.prefilter,xls);
Error in dynare_estimation_1 (line 59)
[dataset_,xparam1, M_, options_, oo_, estim_params_,bayestopt_] =
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_,
estim_params_, bayestopt_);
Error in dynare_estimation (line 70)
dynare_estimation_1(var_list,dname);
Error in leeper_closed_est (line 503)
dynare_estimation(var_list_);
Error in dynare (line 120)
evalin('base',fname) ;
Thanks
>>