Code running into problem


Thank you for your reply Prof. Pfeifer. My code could run for about half an hour, then an error showed up stating the Error using chol. When I changed the prior variance to a small number, the code could not run at all. The two problematic parameters follow Beta distribution. One is the monetary policy persistence, and the other is the governemnt expenditure persistence. I do not know why the code cannot run at all when I changed the variance to a smaller number.

Without the codes, it is impossible to tell. What is the exact error message?

papermycodeB.mod (13.3 KB)
BayesianData2.xlsx (39.9 KB)

Thank you Prof. Pfeifer, for your help. I attached the code, data, and error message.

There is a problem with your model:

MODEL_DIAGNOSTICS: The following endogenous variables aren’t present at the current period in the model:

Thank you Prof. Peifer, for your reply. I have two more questions. First, does all endogenous variables have to present at the current period in the model? Second, my calibrated model still works. I am confused why it is still works if there is a problem with the model. I am looking forward to your reply. Thank you again. Alex

  1. I am unaware of sensible models where variables do not appear in the current period. After all, how are you supposed to determine the past, predetermined values if there is no contemporaneous decision about them?
  2. You may be able to run the model. But that does not mean it makes sense.

Thank you Prof. Pfeifer, for answering my questions. I changed the model, but now it did not work. The BK conditions are not satisfied. I could not fix it. Can you please help check my code? Thank you. Alex
dynaregai.mod (11.4 KB)
f_omega.m (510 Bytes)
functions_omega.m (2.1 KB)

Then you should try to simplify your model. It’s hard to debug a model of that size.

Thank you, Prof. Pfeifer, for your advice. I have one question about the dynare forum. Sometimes when you reply to my message, I receive an email notification. But sometimes I do not receive a notification. What should I do so that I can receive a notification when others reply to my questions.

At the bottom of the page, you can set the “Tracking” of threads.

Thank you, Prof. Pfeifer, for your reply. Alex

Even if there is a problem within the model, it is still possible to get the calibrated results although the results may do not make sence at all. I am curious if it is possible to get the estimation results if there is a problem witin the model. Thank you Prof. Pfeifer.