Page 1 of 1

model_comparion help

PostPosted: Tue Jul 14, 2015 7:45 pm
by Nice
Hello Jpfeifer,

I am trying to compare two models that I have estimated and after using the command model_comparison model1 model2;

I get the following error " Not enough input arguments"

I thought it may have been because dynare wants me to specify a prior over the models but even when I do so I get the same error. The only thread somewhat related to this that I found was this one:

viewtopic.php?f=1&t=1481&p=2429&hilit=model_comparison#p2429

Am I to understand that I can obtain the posterior odds ratio as follows = posterior probability of model A/ posterior probability of model B?

Many Thanks!

Re: model_comparion help

PostPosted: Wed Jul 15, 2015 6:52 am
by jpfeifer
What exactly did you do after estimating the models? Which command did you use?

Re: model_comparion help

PostPosted: Wed Jul 15, 2015 2:50 pm
by Nice
Hello jpfeifer,

I estimated each model ( model1.mod and model2.mod) using the estimation command, and then in the command window I typed the following:

model_comparison model1 model2;

It gave me the error

model_comparison : The user supplied prior distribution over models is improper....
model_comparison: The distribution is automatically rescaled!
Error using model_comparison (line 50)
Not enough input arguments.

Many Thanks,

Re: model_comparion help

PostPosted: Wed Jul 15, 2015 3:10 pm
by jpfeifer
In that command window that won't work. Try putting just this line into a mod-file and then run Dynare on it.