From 165dfd549c0d658de734e7906781c98a1ff8c414 Mon Sep 17 00:00:00 2001 From: assia Date: Thu, 10 Jan 2008 14:47:31 +0000 Subject: [PATCH] header updated git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1549 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/priordens.m | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/matlab/priordens.m b/matlab/priordens.m index 15dd6cdd5..19df26976 100644 --- a/matlab/priordens.m +++ b/matlab/priordens.m @@ -1,12 +1,29 @@ function lnprior = priordens(para, pshape, p1, p2, p3, p4) -% This procedure computes a prior density for -% the structural parameters of the DSGE models -% pshape: 0 is point mass, both para and p2 are ignored -% 1 is BETA(mean,stdd) -% 2 is GAMMA(mean,stdd) -% 3 is NORMAL(mean,stdd) -% 4 is INVGAMMA(s^2,nu) -% 5 is UNIFORM [p3,p4] + +% function lnprior = priordens(para, pshape, p1, p2, p3, p4) +% computes a prior density for the structural parameters of DSGE models +% +% INPUTS +% para: parameter value +% pshape: 0 is point mass, both para and p2 are ignored +% 1 is BETA(mean,stdd) +% 2 is GAMMA(mean,stdd) +% 3 is NORMAL(mean,stdd) +% 4 is INVGAMMA(s^2,nu) +% 5 is UNIFORM [p3,p4] +% p1: mean +% p2: standard deviation +% p3: lower bound +% p4: upper bound +% +% OUTPUTS +% lnprior: log of the prior density +% +% SPECIAL REQUIREMENTS +% none +% +% part of DYNARE, copyright Dynare Team (2003-2008) +% Gnu Public License. lnprior = 0; nprio = length(pshape);