cross-correlation

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.

cross-correlation

Postby colcia » Tue Feb 16, 2010 5:07 pm

Hello

using stoch_simul I can get the matrix of theoretical contemporaneous cross correlations between HP filtered variables. Is there a way to obtain theoretical cross correlations of HP filtered variables at various leads and lags?

Thanks and best regards

Andrea
colcia
 
Posts: 5
Joined: Mon Dec 29, 2008 9:36 am

Re: cross-correlation

Postby StephaneAdjemian » Tue Feb 23, 2010 10:59 am

Hi,

The (theoretical and simulated) cross autocorrelations are not displayed by Dynare but are computed. You will find the autocorrelation function in oo_.gamma_y. By default the order of the autocorrelation function is five. To display the autocorrelation of order h (0<h<=5 if you do not change the default) you just have to type

Code: Select all
oo_.gamma_y{h+1}


oo_.gamma_y is a cell of arrays this explains the curly braces. The first element of this cell is the covariance of the endogenous variables, the 5 following elements are for the autocovariance function, last element is for the variance decomposition.

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: cross-correlation

Postby mpalmero » Thu Jun 19, 2014 3:09 am

Hi Stéphane,
I'm using V 4.4.2, and I want to get the cross-correlations 5 lags 5 leads, How do I get it, and is there a command to do it easily, if so, what and where do I have to type it.
Many Thanks
Martin
mpalmero
 
Posts: 2
Joined: Wed Sep 26, 2012 2:53 am

Re: cross-correlation

Postby brasidas1 » Thu Jun 19, 2014 8:55 am

One easy way of doing this is to just define new variables such as x = y(-1), z(-1) = y and so on.
brasidas1
 
Posts: 5
Joined: Fri May 16, 2014 8:20 am

Re: cross-correlation

Postby jpfeifer » Sun Jun 22, 2014 10:23 am

As Stephane said, after running stoch_simul, they are stored in oo_.gamma_y as documented in the manual.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests