Hi,

I keep getting the following error message:

??? Index exceeds matrix dimensions.

Error in ==> dsge_posterior_theoretical_covariance at 85

Covariance_matrix(linea,symmetric_matrix_index(i,j,nvar)) = tmp{1}(i,j);

Error in ==> posterior_analysis>job at 55

[nvar,vartan,NumberOfFiles] = …

Error in ==> posterior_analysis at 33

oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_);

Error in ==> compute_moments_varendo at 41

oo_ = posterior_analysis(‘variance’,var_list_(i,:),var_list_(j,:),],options_,M_,oo_);

Error in ==> dynare_estimation_1 at 959

oo_ = compute_moments_varendo(options_,M_,oo_,var_list_);

Error in ==> dynare_estimation at 62

dynare_estimation_1(var_list,varargin{:});

Error in ==> ipt2 at 182

dynare_estimation(var_list_);

Error in ==> dynare at 102

evalin(‘base’,fname) ;

I have run similar models in dynare without problems. I am wondering what may be causing this problem. I appreciate any feedback. File is attached.

Best,

Pedro

ipt2.mod (3 KB)