I am trying to do do the exact same thing as earlier, i.e. running the mod-file with the purpose of getting the likelihood value only. The difference this time is that instead of a pure Maximum likelihood I’ve added the same priors as Smets and Wouters (2007). But now the usual way doesn’t seem to work at all. Is there a way to fix this? I’ve attached both files, the usual maximum likelihood mod-file called “s_and_w_ml.mod” and the one with priors “s_and_w_prior.mod”
I wanna get the likelihood value for some paramater vector “xparam”. This works fine when I have a 100 % maximum likelihood mod file. But when I add priors, for instance if I replace the first row of the “estimated_params” block like this (in the s_and_w_ml.mod file):
csadjcost,6.3325,tres(1,1),tres(1,2);
and replace it with the prior
csadjcost,6.3325,2,15,NORMAL_PDF,4,1.5;
It doesn’t work any more and I get the error that it can’t find the distribution “NORMAL_PDF”
Oki. But I also tried a full Bayesian where I put priors on all parameters (that’s the only difference between “s_and_w_ml.mod” and “s_and_w_prior.mod”). Although it doesn’t work the same way that “s_and_w_ml.mod” does, that is, allows me to evaluate the likelihood value only for a given parameter vector.
No worries, I found the problem myself. Some of the parameters were outside of the prior bounds which in turn generated the error log likelihood -1e+8.