bug in prior_bounds.m
Posted: Wed Sep 12, 2012 2:59 pm
Hi,
I think there is a bug in prior_bounds.m.
In the comments on top of the file it is written that it returns bounds in the order upper & lower.
Then this order is followed if prior_trunc==1 but the opposite order is followed if prior_trunc==0;
The dynare_estimation_init.m file that calls prior_bounds expects to find bounds in the order lower & upper.
In the amended file here attached I've switched the order set under prior_trunc==1. This seems to work when initial values
are provided in the same block where priors are given.
Best
Gianni
PS: I'm using v4.3.0 unstable
I think there is a bug in prior_bounds.m.
In the comments on top of the file it is written that it returns bounds in the order upper & lower.
Then this order is followed if prior_trunc==1 but the opposite order is followed if prior_trunc==0;
The dynare_estimation_init.m file that calls prior_bounds expects to find bounds in the order lower & upper.
In the amended file here attached I've switched the order set under prior_trunc==1. This seems to work when initial values
are provided in the same block where priors are given.
Best
Gianni
PS: I'm using v4.3.0 unstable