From e48f546b4cc3907fedc537bdf0b6a0fefa09d49d Mon Sep 17 00:00:00 2001 From: adjemian Date: Fri, 22 Jun 2007 09:23:45 +0000 Subject: [PATCH] mode_check option for bvar-dsge. git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1326 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/mode_check.m | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/matlab/mode_check.m b/matlab/mode_check.m index 06d37142a..da95bf9bd 100644 --- a/matlab/mode_check.m +++ b/matlab/mode_check.m @@ -40,7 +40,11 @@ if nbplt == 1 y = zeros(length(z),1); for i=1:length(z) xx(k) = z(i); % kk -> k - y(i) = DsgeLikelihood(xx,gend,data); + if isempty(strmatch('dsge_prior_weight',M_.param_names)) + y(i) = DsgeLikelihood(xx,gend,data); + else + y(i) = DsgeVarLikelihood(xx,gend); + end end plot(z,y) hold on @@ -91,7 +95,11 @@ else y = zeros(length(z),1); for i=1:length(z) xx(kk) = z(i); - y(i) = DsgeLikelihood(xx,gend,data); + if isempty(strmatch('dsge_prior_weight',M_.param_names)) + y(i) = DsgeLikelihood(xx,gend,data); + else + y(i) = DsgeVarLikelihood(xx,gend); + end end plot(z,y); hold on @@ -144,7 +152,11 @@ else y = zeros(length(z),1); for i=1:length(z) xx(kk) = z(i); - y(i) = DsgeLikelihood(xx,gend,data); + if isempty(strmatch('dsge_prior_weight',M_.param_names)) + y(i) = DsgeLikelihood(xx,gend,data); + else + y(i) = DsgeVarLikelihood(xx,gend); + end end plot(z,y) hold on