Hi Johannes,
When I try to do the log posterior kernel minimization by running the file 'candidate.m' by using csminwel, I get stuck since the log(prior) turn out to be (-ve) infinity and so the log(posterior kernel) becomes (-ve) infinity and the posterior mode ends up being weird and the hessian not being positive definite at the mode. My best guess is that the trouble is arising from incorrect re-parametrization, however, I couldn't still fix it after trying different forms of re-parametrization. I have attached a zip file named 'Bayesian LS' containing the matlab codes used. Much of these codes are borrowed from Schorfeide's webpage.
The starting values I use for the csminwel are the modes obtained from running the estimation in DYNARE. The mode values from DYNARE using mode_compute = 4, ie, csminwel, for the Lubic and Schorfeide (2004) parameters are as follows:
psi1 = 2.1700
psi2 = 0.2208
rhoR = 0.8467
piestar = 3.4212
rstar = 3.0202
kappa = 0.5262
Tau = 1.7690
rhoG = 0.8283
rhoZ = 0.8593
rhoGZ = 0.3355
sigmaR = 0.1667
sigmaG = 0.1711
sigmaZ = 0.6030.
Please download the zip file and run the m file 'candidate.m' at your leisure. Then you will perhaps realize the problem I am encountering. I believe there is some subtle issue in the coding that's creating the problem which I am not being able to figure out.
Any help in fixing the problem would be much highly appreciated.
Thanks a bunch.
Sincerely,
Qazi.
P.S. Sorry for the lengthy post. I had to describe what's going on for the purpose of clarification of my issues.