autcovariances output

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.

autcovariances output

Postby tovonony » Mon May 31, 2010 12:58 pm

Hello,
I have some trouble in finding the matrices of autocovariances in the global output variable "oo_" when running Alt_Ex1.mod. As it is mentionned in the dynare user guide (p.41) , "by default, dynare will return autocovariances with a lag of 5 plus the variance decomposition" but unfortunately i could not find it.

i will be gratefull for any help,
regards
tovonony
 
Posts: 15
Joined: Mon May 31, 2010 10:02 am

Re: autcovariances output

Postby jpfeifer » Tue Jun 01, 2010 7:30 am

After running the model, you will find the variable "oo_" in the Matlab workspace. It is a structure. So if you double-click on it, you see the fields of this structure. One of them is named "autocorr". It is a 1 by 5 cell array, where each cell stores one matrix.
Alternatively, if you type "oo_.autocorr{1,number}" in the command window after running the mod-file, where number is between 1 and 5 , Matlab outputs the corresponding autocorrelation matrix in the command window.
------------
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: autcovariances output

Postby tovonony » Tue Jun 01, 2010 11:55 am

Jpfeifer, thanks for your response, i have seen this "oo_autocorr" in the workspace but not the "oo_gamma_y" (the matrices of autocovariances) which i am looking for, as specified in the user guide by Tommaso M.G. p.41, it is said that dynare gives it by default but i could'nt find it in the oo_ structure.
help!!!!
tovonony
 
Posts: 15
Joined: Mon May 31, 2010 10:02 am

Re: autcovariances output

Postby jpfeifer » Tue Jun 01, 2010 2:11 pm

The user guide is somewhat out of date. The more current Dynare manual does not even mention this variable, so it is most probably deprecated. The manual states on p. 31:
The matrix of autocorrelation of the endogenous variables are made available in cell array oo_.autocorr. The element
number of the matrix in the cell array corresponds to the order of autocorrelation. The option ar specifies the number of
autocorrelation matrices available.

So this variable should be what you are looking for.
------------
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: autcovariances output

Postby tovonony » Tue Jun 01, 2010 3:16 pm

that i was thinking, thanks again for the information,
tovonony
 
Posts: 15
Joined: Mon May 31, 2010 10:02 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests