i'm trying to get the posterior odds to compare two models, how can can i compare two models using dynare?
i have tried the code: [model_comparison(model_comparison_approximation=laplace) model name1, model name2;];but it is not working, and it gives the following error:
(ERROR: model name.mod:85.17-46: syntax error, unexpected MODEL_COMPARISON, expecting MODEL_COMPARISON_APPROXIMATION or NOPRINT or PRINT.), and when i use (MODEL_COMPARISON_APPROXIMATION) instead of (model_comparison), it gives the following error:
(??? Error: File: model name.m Line: 186 Column: 62 The expression to the left of the equals sign is not a valid target for
an assignment.)
Can any one please provide me with the right code and process to achieve my target?