


Evaluates minus the logged prior density. INPUTS xparams [double] vector of parameters. pshape [integer] vector specifying prior densities shapes. p6 [double] vector, first hyperparameter. p7 [double] vector, second hyperparameter. p3 [double] vector, prior's lower bound. p4 [double] vector, prior's upper bound. OUTPUTS f [double] value of minus the logged prior density.


0001 function [f,fake] = minus_logged_prior_density(xparams,pshape,p6,p7,p3,p4) 0002 % Evaluates minus the logged prior density. 0003 % 0004 % INPUTS 0005 % xparams [double] vector of parameters. 0006 % pshape [integer] vector specifying prior densities shapes. 0007 % p6 [double] vector, first hyperparameter. 0008 % p7 [double] vector, second hyperparameter. 0009 % p3 [double] vector, prior's lower bound. 0010 % p4 [double] vector, prior's upper bound. 0011 % 0012 % OUTPUTS 0013 % f [double] value of minus the logged prior density. 0014 0015 % Copyright (C) 2009 Dynare Team 0016 % 0017 % This file is part of Dynare. 0018 % 0019 % Dynare is free software: you can redistribute it and/or modify 0020 % it under the terms of the GNU General Public License as published by 0021 % the Free Software Foundation, either version 3 of the License, or 0022 % (at your option) any later version. 0023 % 0024 % Dynare is distributed in the hope that it will be useful, 0025 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0026 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0027 % GNU General Public License for more details. 0028 % 0029 % You should have received a copy of the GNU General Public License 0030 % along with Dynare. If not, see <http://www.gnu.org/licenses/>. 0031 fake = 1; 0032 f = - priordens(xparams,pshape,p6,p7,p3,p4);