conditional variance

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.

conditional variance

Postby YiJohn » Wed Jul 24, 2013 7:11 am

I was solving a standard DSGE model, and I was looking for conditional variance of endogenous variables, like var(y_{t+k}|t) with respect to different horizon k.

Is there an option or command that reports this conditional variances? Thanks a lot.

PS: I am aware that stoch_simul has an option conditional_variance_decomposition that does conditional variance decomposition, but this option only reports the decomposition in percent, not in value.

Thanks!

Yi
YiJohn
 
Posts: 7
Joined: Tue Oct 09, 2012 6:29 am

Re: conditional variance

Postby jpfeifer » Mon Jul 29, 2013 11:48 am

Currently, there is no option. But you can change conditional_variance_decomposition.m to get this behavior. There, a variable called ConditionalVariance is computed, but not saved. If you add something like

Code: Select all
save conditionalvariance ConditionalVariance;

after the variable ConditionalVariance has been created, running Dynare will save it to a correspondingly named file on the harddisk.
------------
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: conditional variance

Postby YiJohn » Mon Jul 29, 2013 7:31 pm

jpfeifer, Thank you very much for your help!

Yi
YiJohn
 
Posts: 7
Joined: Tue Oct 09, 2012 6:29 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests