model_comparion help

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

model_comparion help

Postby Nice » Tue Jul 14, 2015 7:45 pm

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!
Nice
 
Posts: 31
Joined: Fri Jul 11, 2014 5:16 pm

Re: model_comparion help

Postby jpfeifer » Wed Jul 15, 2015 6:52 am

What exactly did you do after estimating the models? Which command did you use?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: model_comparion help

Postby Nice » Wed Jul 15, 2015 2:50 pm

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,
Nice
 
Posts: 31
Joined: Fri Jul 11, 2014 5:16 pm

Re: model_comparion help

Postby jpfeifer » Wed Jul 15, 2015 3:10 pm

In that command window that won't work. Try putting just this line into a mod-file and then run Dynare on it.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron