CORRELATION OF SIMULATED VARIABLES

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.

CORRELATION OF SIMULATED VARIABLES

Postby leonard007 » Tue Sep 29, 2015 9:54 am

Hello Everyone,
There is a table in dynare it calls : CORRELATION OF SIMULATED VARIABLES
that I uploaded the table in the .tex here, I need the covariance between Lambda and Re every period of simulation to calculate E(Re(1))=(1-cov(Lambda(1),Re(1))/E(lambda(1)),that comes from asset pricing in Lucas tree, I tried to find these data in workspaces of dynare like oo_.var or oo_.dr but I was not successful.
I would like to know how I can have access to data of this table?
and If I put Euler equations like:
Lambda(1)R=1;
Lambda(1)Re(1)=1;
Re(1)=(Y(1)+Q(1))/Q;
log(Y)=.9*log(Y(-1))+epsilon; //[that epsilon is my shock]
dynare automatically will take it into account that E(Re(1))=(1-cov(Lambda(1),Re(1))/E(lambda(1)) and not Re(1)=R?

Sincerely,
Attachments
CORRELATION OF SIMULATED VARIABLES.txt
(1.41 KiB) Downloaded 166 times
leonard007
 
Posts: 54
Joined: Tue May 26, 2015 12:30 pm

Re: CORRELATION OF SIMULATED VARIABLES

Postby jpfeifer » Thu Oct 01, 2015 9:09 pm

For the first part: if you want autocovariances, you have to reconstruct them from the autocorrelations and the covariance matrices stored in oo_.gamma_y

Regarding the second part: only at order>1 will covariances play a role.
------------
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 contributions and examples

Who is online

Users browsing this forum: No registered users and 5 guests