Looping over hyperparameters in Bayesian VAR
Posted: Thu Oct 08, 2015 3:43 pm
Hello,
I would like to estimate a Bayesian VAR in Dynare several times, looping over possible combination of hyper-parameters values. My current mod file looks like this:
var pih pif yhg yfg;
varobs pih pif yhg yfg;
bvar_density(datafile = dataset, first_obs = 6,
bvar_prior_mu = 2, bvar_prior_lambda = 1, bvar_prior_tau = 1,
bvar_prior_decay = 4, bvar_prior_omega = 1) 4;
Is there a simple way of defining the values for mu, lambda, tau, d and omega outside the mod file and then pass them in?
Also, where is the value of the marginal data density stored?
Thank you very much!
Giacomo
I would like to estimate a Bayesian VAR in Dynare several times, looping over possible combination of hyper-parameters values. My current mod file looks like this:
var pih pif yhg yfg;
varobs pih pif yhg yfg;
bvar_density(datafile = dataset, first_obs = 6,
bvar_prior_mu = 2, bvar_prior_lambda = 1, bvar_prior_tau = 1,
bvar_prior_decay = 4, bvar_prior_omega = 1) 4;
Is there a simple way of defining the values for mu, lambda, tau, d and omega outside the mod file and then pass them in?
Also, where is the value of the marginal data density stored?
Thank you very much!
Giacomo