Cross country correlations

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 country correlations

Postby mbov » Wed Jul 20, 2016 5:50 am

Hi there,

Is there a code after bayesian estimation of a DSGE model which can obtain the cross-country correlations if I have used data between Canada and the US?
Ie, if their is US output and Canada Output, obtain correlations for Corr(US_t,CAN_(t-k)) where t indexes time (t) and k>0.

Thank you
mbov
 
Posts: 12
Joined: Sat Jul 16, 2016 5:56 am

Re: Cross country correlations

Postby jpfeifer » Wed Jul 20, 2016 6:49 am

Are you talking about cross-correlations in the data? Or for model variables? The latter are simple cross-correlation between model variables that are e.g. saved if you enable
Code: Select all
moments_varendo
------------
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: Cross country correlations

Postby mbov » Wed Jul 20, 2016 8:44 am

Thank you for your response. Cross correlations for both the data and DSGE model variables.
mbov
 
Posts: 12
Joined: Sat Jul 16, 2016 5:56 am

Re: Cross country correlations

Postby jpfeifer » Wed Jul 20, 2016 9:06 am

For the data you have to compute it yourself.
------------
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: Cross country correlations

Postby mbov » Thu Jul 21, 2016 12:59 pm

Thankyou. For the model cross correlations, how would you obtain the (10,90) or (5,95) posterior bands from:

oo_.PosteriorTheoreticalMoments.dsge.correlation.deciles.dp_obs.dpS_obs

It gives me a 5x1 cell

Thanks
mbov
 
Posts: 12
Joined: Sat Jul 16, 2016 5:56 am

Re: Cross country correlations

Postby jpfeifer » Thu Jul 21, 2016 1:06 pm

The HPDI should give you 90% posterior bands.
------------
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: Google [Bot] and 9 guests