Page 1 of 1

Error in dsge_simulated_theoretical_variance_decomposition

PostPosted: Mon Jul 07, 2014 12:12 pm
by Vik
Dear all,
I got the following message:

Index exceeds matrix dimensions.
Error in dsge_simulated_theoretical_variance_decomposition (line 113)
Decomposition_array(linea,(i-1)*nexo+j) = tmp{2}(i,j);
Error in posterior_analysis>job (line 61)
[nvar,vartan,NumberOfFiles] = ...
Error in posterior_analysis (line 34)
oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_);
Error in compute_moments_varendo (line 101)
oo_ =
posterior_analysis('decomposition',var_list_(i,:),M_.exo_names(j,:),[],options_,M_,oo_);
Error in dynare_estimation_1 (line 818)
oo_ =
compute_moments_varendo('posterior',options_,M_,oo_,var_list_);
Error in dynare_estimation (line 89)
dynare_estimation_1(var_list,dname);
Error in banks_exp_K_b_est (line 1126)
dynare_estimation(var_list_);
Error in dynare (line 180)
evalin('base',fname) ;

I can't get which matrix has a problem.

Thank you in advance.

Re: Error in dsge_simulated_theoretical_variance_decompositi

PostPosted: Mon Jul 07, 2014 1:38 pm
by jpfeifer
This might be a bug related to the loading of previous draws. Could you try the most recent snapshot and report back. If it does not work, I would need the full directory in a zip-file, including the mode-file, the datafile and the mh-files.

Re: Error in dsge_simulated_theoretical_variance_decompositi

PostPosted: Wed Jul 09, 2014 7:33 am
by Vik
Dear Johannes,

Thanks a lot your reply. The most recent snapshot doesn't seem to be working too. I enclosed the full directory. Please, change the filename extension into zip.

Re: Error in dsge_simulated_theoretical_variance_decompositi

PostPosted: Wed Jul 09, 2014 12:26 pm
by jpfeifer
Sorry, but the _results-file is missing.

Re: Error in dsge_simulated_theoretical_variance_decompositi

PostPosted: Wed Jul 16, 2014 6:22 am
by Vik
Dear Johannes,

I've made a new run for the codes, but Dynare did not save the _results-file, perhaps, because of an error. However, without the option conditional_variance_decomposition, Dynare creates the _results-file. Information about the error is saved in log-file. I attached the zip-file of the full directory except for the _posterior_draws1-file as it is too big (58MB).

Thank you.

Re: Error in dsge_simulated_theoretical_variance_decompositi

PostPosted: Wed Jul 16, 2014 2:49 pm
by jpfeifer
I got it. The problem is that all your variables have a unit root and thus infinite variance. No variance decomposition is possible in this case.

Re: Error in dsge_simulated_theoretical_variance_decompositi

PostPosted: Thu Jul 17, 2014 7:53 am
by Vik
Thanks a lot!