DSGE-VAR: Posterior distribution of PHI and SIGMA

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.

DSGE-VAR: Posterior distribution of PHI and SIGMA

Postby Aldo » Wed Feb 24, 2016 6:58 pm

Greetings dear all,
I'm trying to use dynare codes for analyzing an DSGE-VAR model as Del Negro & Schorfheide(2003): "PRIORS FROM GENERAL EQUILIBRIUM MODELS FOR VARS" https://www.ecb.europa.eu/events/pdf/conferences/schorfheide.pdf.

In equations (30) and (31), about posterior distribution of PHI and SIGMA, I see that PHI and SIGMA are generated from an Inverted Wishart-Normal form. My question are:

1. In dynare codes ¿Where is done the extraction from Inverted Wishart-Normal form?. I ask this because I reviewed in http://www.dynare.org/dynare-matlab-m2html/matlab/dsge_var_likelihood.html and I didn't find one generating from an Inverted Wishart-Normal form.

2. I want to use this code: http://www.dynare.org/dynare-matlab-m2html/matlab/distributions/rand_inverse_wishart.html for generating a m-by-m matrix from an inverse Wishart distribution with parameters Tau and df, that is with df degrees of freedom and where Tau is a symmetric and positive definite matrix. Is it okay to use this syntax:
Code: Select all
rand_inverse_wishart(m, df, Chol(Tau))
for my purpose?

I'd appreciate it if you could reply to my question.
Aldo
 
Posts: 56
Joined: Fri Aug 07, 2015 4:47 pm

Re: DSGE-VAR: Posterior distribution of PHI and SIGMA

Postby jpfeifer » Sat Feb 27, 2016 4:01 pm

1.) That function only evaluates the posterior density. You do not need to generate anything from the Inverse Wishart normal. For IRFs, you need this.
2.) Please have a look at the call to rand_inverse_wishart.m in http://www.dynare.org/dynare-matlab-m2html/matlab/PosteriorIRF_core1.html
------------
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: DSGE-VAR: Posterior distribution of PHI and SIGMA

Postby Aldo » Tue Mar 01, 2016 11:49 am

Thank you veru much.

Cheers

Aldo
Aldo
 
Posts: 56
Joined: Fri Aug 07, 2015 4:47 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 15 guests