Page 1 of 1

does dynare allow for heteroskedastic variance in shocks

PostPosted: Fri Jul 14, 2017 7:02 pm
by Jesse
Dear All,
I am recently doing a project on DSGE model with heteroskedastic variance in structural shocks, I am wondering that does Dynare allow structural shocks to be specified with heteroskedastic variances?
Thank you!
Best wishes,
Jesse

Re: does dynare allow for heteroskedastic variance in shocks

PostPosted: Sat Jul 15, 2017 8:37 am
by jpfeifer
What exactly do you have in mind? What is the form of heteroskedasticity? Stochastic volatility? GARCH?

Re: does dynare allow for heteroskedastic variance in shocks

PostPosted: Sat Jul 15, 2017 8:28 pm
by Jesse
Dear Johannes,
I mean GARCH. When specifying the variance of a structural shock, can I use a latent endogenous variable instead of a parameter? the latent endogenous variable represents the time varying variance.
Look forward to hearing from you.
Best,
Jesse

Re: does dynare allow for heteroskedastic variance in shocks

PostPosted: Sun Jul 16, 2017 9:32 am
by jpfeifer
In the shocks-block you can always only define homoskedastic shocks. But this is not really limiting. You can write any heteroskedastic shock process as the product of a process defining the time-varying standard deviation times the homoskedastic shock:
Code: Select all
sigma_t*epsilon

An example is the stochastic volatility process from https://github.com/JohannesPfeifer/DSGE_mod/blob/master/Born_Pfeifer_2014/Born_Pfeifer_RM_Comment.mod

Code: Select all
model;
eps_r=rho_eps_r*eps_r(-1)+exp(sigma_r)*u_r;   
sigma_r=(1-rho_sigma_r)*sigma_r_bar+rho_sigma_r*sigma_r(-1)+eta_r*u_sigma_r;
end;

shocks;
var u_r; stderr 1;
var u_sigma_r; stderr 1;
end;

All exogenous shocks here are homeskedastic, but simga_r makes the shock entering the eps_r equation heteroskedastic.

log of shock u_r no longer normal, Kalman filter still feasi

PostPosted: Sun Jul 16, 2017 1:40 pm
by Jesse
Dear Johannes,
Thank you very much.
In fact, I have tried this form already, I have a question for eps_r=rho_eps_r*eps_r(-1)+exp(sigma_r)*u_r;
after log-linearisation of this equation in Dynare, log of shock u_r no longer follows normal distribution, can I still apply Kalman filter in estimation? because Kalman filter requires all exogenous shocks to be normal.
Thank you again and look forward to hearing from you.
Best wishes,
Jesse

Re: does dynare allow for heteroskedastic variance in shocks

PostPosted: Mon Jul 17, 2017 3:49 pm
by jpfeifer
Of course not. The Kalman filter works for linear Gaussian state space models. Heteroskedastic models are not linear anymore. You can simulate them in Dynare, but you cannot estimate them yet. The particle filter only works up to order=2, not 3