display_conditional_variance_decomposition.m (line 40)

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.

display_conditional_variance_decomposition.m (line 40)

Postby kevin » Tue Jun 29, 2010 9:24 am

there is a problem with
Code: Select all
display_conditional_variance_decomposition.m (line 40)
:

Code: Select all
StateSpaceModel.sigma_e_is_diagonal = M_.sigma_e_is_diagonal;


it should probably read:

Code: Select all
StateSpaceModel.sigma_e_is_diagonal = diag(M_.Sigma_e);


there is no
sigma_e_is_diagonal
in
M_
kevin
 
Posts: 1
Joined: Tue Jun 26, 2007 3:23 pm

Re: display_conditional_variance_decomposition.m (line 40)

Postby SébastienVillemot » Thu Aug 19, 2010 9:21 am

Hi,

Sorry, but there is a “M_.sigma_e_is_diagonal”, at least in recent versions of Dynare.

Which version are you using? Is it possible that you are mixing recent M files with an older version of the preprocessor?

Best
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: display_conditional_variance_decomposition.m (line 40)

Postby otb » Thu Aug 19, 2010 2:30 pm

I also encountered the same problem with conditional_variance_decomposition. I think M_.sigma_e_is_diagonal is not defined, at least when the program reaches conditional_variance_decomposition.m (I am using the last version).

In my case, all the shocks are orthogonal, so I commented out some of the lines in the if-end block of the conditional_variance code, and it works fine. I guess if the shocks are not orthogonal (i.e. sigma_e is not diagonal), then the program would have to do a Cholesky decomposition first.
otb
 
Posts: 26
Joined: Mon Apr 07, 2008 4:47 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests