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

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.

6 posts
• Page **1** of **1**

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

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

What exactly do you have in mind? What is the form of heteroskedasticity? Stochastic volatility? GARCH?

- jpfeifer
**Posts:**6940**Joined:**Sun Feb 21, 2010 4:02 pm**Location:**Cologne, Germany

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

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

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:

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

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

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

- jpfeifer
**Posts:**6940**Joined:**Sun Feb 21, 2010 4:02 pm**Location:**Cologne, Germany

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

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

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

- jpfeifer
**Posts:**6940**Joined:**Sun Feb 21, 2010 4:02 pm**Location:**Cologne, Germany

6 posts
• Page **1** of **1**

Users browsing this forum: No registered users and 11 guests