Page 1 of 1

conditional variance

PostPosted: Wed Jul 24, 2013 7:11 am
by YiJohn
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

Re: conditional variance

PostPosted: Mon Jul 29, 2013 11:48 am
by jpfeifer
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.

Re: conditional variance

PostPosted: Mon Jul 29, 2013 7:31 pm
by YiJohn
jpfeifer, Thank you very much for your help!

Yi