From f1b3da91dff4a0a3f48635c159a6b8e22a53a008 Mon Sep 17 00:00:00 2001 From: assia Date: Mon, 3 Mar 2008 10:37:14 +0000 Subject: [PATCH] header updated git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1729 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/DsgeLikelihood.m | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/matlab/DsgeLikelihood.m b/matlab/DsgeLikelihood.m index f1efb871c..8b1cc8a8f 100644 --- a/matlab/DsgeLikelihood.m +++ b/matlab/DsgeLikelihood.m @@ -1,7 +1,28 @@ function [fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data) -% stephane.adjemian@cepremap.cnrs.fr [09-07-2004] -% -% Adapted from mj_optmumlik.m + +% function [fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data) +% Evaluates the posterior kernel of a dsge model. +% +% INPUTS +% xparam1: vector of model parameters. +% gend : scalar specifying the number of observations. +% data : matrix of data +% +% OUTPUTS +% fval : value of the posterior kernel at xparam1. +% cost_flag : zero if the function returns a penalty, one otherwise. +% ys : steady state of original endogenous variables +% trend_coeff : +% info : vector of informations about the penalty: +% 41: one (many) parameter(s) do(es) not satisfied the lower bound +% 42: one (many) parameter(s) do(es) not satisfied the upper bound +% +% SPECIAL REQUIREMENTS +% Adapted from mj_optmumlik.m +% +% part of DYNARE, copyright Dynare Team (2004-2008) +% Gnu Public License. + global bayestopt_ estim_params_ options_ trend_coeff_ M_ oo_ xparam1_test fval = [];