does dynare allow for heteroskedastic variance in shocks

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.

does dynare allow for heteroskedastic variance in shocks

Postby Jesse » Fri Jul 14, 2017 7:02 pm

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
Jesse
 
Posts: 44
Joined: Sat Feb 13, 2016 3:34 pm
Location: Sydney, Australia

Re: does dynare allow for heteroskedastic variance in shocks

Postby jpfeifer » Sat Jul 15, 2017 8:37 am

What exactly do you have in mind? What is the form of heteroskedasticity? Stochastic volatility? GARCH?
------------
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: does dynare allow for heteroskedastic variance in shocks

Postby Jesse » Sat Jul 15, 2017 8:28 pm

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
Jesse
 
Posts: 44
Joined: Sat Feb 13, 2016 3:34 pm
Location: Sydney, Australia

Re: does dynare allow for heteroskedastic variance in shocks

Postby jpfeifer » Sun Jul 16, 2017 9:32 am

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.
------------
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

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

Postby Jesse » Sun Jul 16, 2017 1:40 pm

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
Jesse
 
Posts: 44
Joined: Sat Feb 13, 2016 3:34 pm
Location: Sydney, Australia

Re: does dynare allow for heteroskedastic variance in shocks

Postby jpfeifer » Mon Jul 17, 2017 3:49 pm

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
------------
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: No registered users and 11 guests