I already did what you suggested before. Still, the mode from the mode.mat and the mh_mode.mat are significantly different.
What I understand is that the mode in mode_mat corresponds to the point that maximises the likelihood for the parameter set without compute the posterior with the metropolis hastings algorithm. On the contrary, the mode in the mh_mode.mat is computed with the metropolis hastings algorithm. Nevertheless I didn’t understand yet why the mode from both files should be almost the same.
The check mode plots, priors, posteriors, mode.mat and mh_mode.mat files are annexed below. Overall shock decompositions are Ok, but the posteriors are not very good and with the same model I didn’t reach convergence after 1000000 draws. I tried the command use_tarb weeks ago but it didn’t work either. Can the problem with the mode explain these non satisfactory results?
output consola.txt (118 KB)