Commit 69b385cc authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Bugfix in PosteriorIRFs

Fixed ancient copy and paste mistake from stoch_simul for relative IRFs
in Posterior IRFs
parent 46a59423
...@@ -177,7 +177,7 @@ while fpar<B ...@@ -177,7 +177,7 @@ while fpar<B
if SS(i,i) > 1e-13 if SS(i,i) > 1e-13
y=irf(dr,SS(M_.exo_names_orig_ord,i), options_.irf, options_.drop,options_.replic,options_.order); y=irf(dr,SS(M_.exo_names_orig_ord,i), options_.irf, options_.drop,options_.replic,options_.order);
if options_.relative_irf if options_.relative_irf
y = 100*y/cs(i,i); y = 100*y/SS(i,i);
end end
for j = 1:nvar for j = 1:nvar
if max(y(IndxVariables(j),:)) - min(y(IndxVariables(j),:)) > 1e-12 if max(y(IndxVariables(j),:)) - min(y(IndxVariables(j),:)) > 1e-12
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment