From 6fdadbf138c7384c36aa12b0e343610058605060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr> Date: Tue, 24 May 2011 12:22:22 +0200 Subject: [PATCH] Ref. manual, model_comparison: add example, fix typo --- doc/dynare.texi | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/dynare.texi b/doc/dynare.texi index a469673a18..c6ca6b3f9d 100644 --- a/doc/dynare.texi +++ b/doc/dynare.texi @@ -4090,9 +4090,19 @@ oo_.posterior_hpdsup.measurement_errors_corr.gdp_conso @deffn Command model_comparison @var{FILENAME}[(@var{DOUBLE})]@dots{}; @deffnx Command model_comparison (marginal_density = laplace | modifiedharmonicmean) @var{FILENAME}[(@var{DOUBLE})]@dots{}; +@descriptionhead + This command computes odds ratios and estimate a posterior density -over a colletion of models. The priors over models can be specified as -the @var{DOUBLE} values, otherwise a uniform prior is assumed. +over a collection of models. The priors over models can be specified +as the @var{DOUBLE} values, otherwise a uniform prior is assumed. + +@examplehead + +@example +model_comparison my_model(0.7) alt_model(0.3); +@end example +This example attributes a 70% prior over @code{my_model} and 30% prior +over @code{alt_model}. @end deffn -- GitLab