Skip to content
Snippets Groups Projects
Commit 39bfc1dd authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Fix two bug in resol that lead to crashes instead of error messages when...

Fix two bug in resol that lead to crashes instead of error messages when loglinear option was used and steady state were negative
parent 381b0426
Branches
Tags
No related merge requests found
...@@ -115,12 +115,12 @@ if options.loglinear ...@@ -115,12 +115,12 @@ if options.loglinear
skipline() skipline()
fprintf('You are attempting to simulate/estimate a loglinear approximation of a model, but\n') 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') fprintf('the steady state level of the following variables is not strictly positive:\n')
for i=1:length(idx) for var_iter=1:length(idx)
fprintf(' - %s (%s)\n',deblank(variables_with_non_positive_steady_state(idx,:)), num2str(dr.ys(idx))) fprintf(' - %s (%s)\n',deblank(variables_with_non_positive_steady_state(var_iter,:)), num2str(dr.ys(idx)))
end end
if isestimation() if isestimation()
fprintf('You should check that the priors and/or bounds over the deep parameters are such') 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.') fprintf('a linearization of the model instead of a log linearization.')
else else
fprintf('You should check that the calibration of the deep parameters is such that the') fprintf('You should check that the calibration of the deep parameters is such that the')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment