From 8898707cafc7979a2e81cbbe2394e5f7d3a5eff1 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx,de> Date: Tue, 10 Jun 2014 10:58:19 +0200 Subject: [PATCH] Fix two bug in resol that lead to crashes instead of error messages when loglinear option was used and steady state were negative (cherry picked from commit 39bfc1dd041a991ade9a776fcda08f2102da5c78) --- matlab/resol.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/resol.m b/matlab/resol.m index 851fe86f3..cae7a1a49 100644 --- a/matlab/resol.m +++ b/matlab/resol.m @@ -115,12 +115,12 @@ if options.loglinear skipline() fprintf('You are attempting to simulate/estimate a loglinear approximation of a model, but\n') fprintf('the steady state level of the following variables is not strictly positive:\n') - for i=1:length(idx) - fprintf(' - %s (%s)\n',deblank(variables_with_non_positive_steady_state(idx,:)), num2str(dr.ys(idx))) + for var_iter=1:length(idx) + fprintf(' - %s (%s)\n',deblank(variables_with_non_positive_steady_state(var_iter,:)), num2str(dr.ys(idx))) end if isestimation() fprintf('You should check that the priors and/or bounds over the deep parameters are such') - frpintf('the steady state levels of all the variables are strictly positive, or consider') + fprintf('the steady state levels of all the variables are strictly positive, or consider') fprintf('a linearization of the model instead of a log linearization.') else fprintf('You should check that the calibration of the deep parameters is such that the') -- GitLab