Error in dsge_simulated_theoretical_variance_decomposition

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 in dsge_simulated_theoretical_variance_decomposition

Postby Vik » Mon Jul 07, 2014 12:12 pm

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.
Attachments
data_banks_new.m
(5.72 KiB) Downloaded 40 times
banks_exp_K_b_est_steadystate.m
(6.58 KiB) Downloaded 43 times
banks_exp_K_b_est.mod
(18.48 KiB) Downloaded 52 times
Vik
 
Posts: 14
Joined: Wed Jun 30, 2010 1:43 pm

Re: Error in dsge_simulated_theoretical_variance_decompositi

Postby jpfeifer » Mon Jul 07, 2014 1:38 pm

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Error in dsge_simulated_theoretical_variance_decompositi

Postby Vik » Wed Jul 09, 2014 7:33 am

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.
Attachments
banks_exp_K_b_est0.txt
(607.47 KiB) Downloaded 65 times
Vik
 
Posts: 14
Joined: Wed Jun 30, 2010 1:43 pm

Re: Error in dsge_simulated_theoretical_variance_decompositi

Postby jpfeifer » Wed Jul 09, 2014 12:26 pm

Sorry, but the _results-file is missing.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Error in dsge_simulated_theoretical_variance_decompositi

Postby Vik » Wed Jul 16, 2014 6:22 am

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.
Attachments
banks_exp_K_b_est0.zip
(905.83 KiB) Downloaded 35 times
Vik
 
Posts: 14
Joined: Wed Jun 30, 2010 1:43 pm

Re: Error in dsge_simulated_theoretical_variance_decompositi

Postby jpfeifer » Wed Jul 16, 2014 2:49 pm

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Error in dsge_simulated_theoretical_variance_decompositi

Postby Vik » Thu Jul 17, 2014 7:53 am

Thanks a lot!
Vik
 
Posts: 14
Joined: Wed Jun 30, 2010 1:43 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests