Dear all,
I want to get Marginal Density from DSGE-VAR over differents values of dsge_prior_weight = [0.5:0.25:10],
Please could you give some advice to do this?
I found some examples about looping over parameters but I didn´t find something about looping over options like dsge_prior_weight.
WARNING: When estimating a DSGE-Var, declaring dsge_prior_weight as a parameter is deprecated. The preferred method is to do this via the dsge_var option in the estimation statement.
ERROR: If dsge_prior_weight is declared as a parameter, it must either be initialized or placed in the estimated_params block.
How could I solve this problem?
I attach my .mod and data.
Thanks you for the contribution. Can you please clarify how we can specify the value for the dsge_prior_weight, as such that it can range from 0 to infinity as mentioned in MARCO DEL NEGRO AND FRANK SCHORFHEIDE, 2006, paper, so that we can ge the liklehood function based on hyperparamter with 0-infinity values.
Dear sir,
For different values of lambda ranging 0 to infinity, I want to get the corresponding marginal liklehood values, so that I can plot the Marginal liklehhood function against the values of hyperparamter which ranges from 0 to infinity after scaling as mentioned in the paper discussed above.
The code below don’t consider the range of hyperpamter from its minimum value to infinity.
n_grid_points=5;
param_grid=linspace(0.3,0.5,n_grid_points);
options_.bayesian_irf = 0;
options_.plot_priors=0;
options_.silent_optimizer=1;
data_density=NaN(n_grid_points,1);