MS-BSVAR

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.

MS-BSVAR

Postby bercerder » Wed Aug 12, 2015 6:58 am

Hello!

Is it correct that you take into account dummies twice during estimation of markov-switching bayesian VAR: in fn_rnrprior_covres_dobs.m and in fn_rlrpostr.m (inside function ms_sbvar_setup() from ms_estimation)? It seems to me that dummies should appear only in likelihood function but not in prior. Otherwise, it's double counting.
Thank you
bercerder
 
Posts: 13
Joined: Thu Apr 23, 2015 7:53 am

Re: MS-BSVAR

Postby jpfeifer » Wed Aug 12, 2015 7:36 am

According to Sims/Waggoner/Zha (2008): Methods for inference in large multiple-equation Markov-switching models the dummy observations are part of the prior, not of the likelihood. As such, they should appear in the prior and in the posterior as the posterior is likelihood times prior, where the latter includes the dummy observations.
------------
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: MS-BSVAR

Postby bercerder » Wed Aug 12, 2015 4:00 pm

jpfeifer wrote:According to Sims/Waggoner/Zha (2008): Methods for inference in large multiple-equation Markov-switching models the dummy observations are part of the prior, not of the likelihood. As such, they should appear in the prior and in the posterior as the posterior is likelihood times prior, where the latter includes the dummy observations.


As far as I understand, we specify dummies in such a way that it doedn't matter where we add dummies (as part of prior or part of likelihood) cause posterior unchanged. But you add them twice - in prior (here: fn_rnrprior_covres_dobs.m) and in likielihood (cause you take variable 'xtx' from output of function fn_dataxy() which calculated using dummies).

And one more question - could you please give me code of function (or whatever it is) 'ms_sbvar_command_line()'? Cause Dynare folder has only mex-files with this name.
bercerder
 
Posts: 13
Joined: Thu Apr 23, 2015 7:53 am

Re: MS-BSVAR

Postby jpfeifer » Wed Oct 07, 2015 4:55 pm

We looked into this issue and Dynare's treatment is correct. You are right that using the dummy variables twice would be wrong. But the way Dynare calls fn_dataxy it will always pass
Code: Select all
indxDummy=0

thus making sure the likelihood is not affected by dummy observations, which only enter the prior.
------------
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: MS-BSVAR

Postby StephaneLhuissier » Thu Oct 08, 2015 12:21 pm

As a simple way to check this, look at the file init_<<name>>.dat, you can see that data (and so the likelihood) are not affected by the dummies!

There is no Matlab version for the file 'ms_sbvar_command_line'. To see how it has been built in Mex, you need to look at the C/C++ code, which is available in the source code.
Stéphane Lhuissier
CEPII
http://www.stephanelhuissier.eu
StephaneLhuissier
 
Posts: 20
Joined: Fri Oct 30, 2009 1:47 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests