Verified Commit dedfd0c0 authored by Johannes Pfeifer 's avatar Johannes Pfeifer Committed by Stéphane Adjemian

compute_moments_varendo: skip variance decomposition at higher order

parent 9f903db2
......@@ -112,7 +112,8 @@ else
end
% VARIANCE DECOMPOSITION.
if M_.exo_nbr > 1
if options_.order==1
if M_.exo_nbr > 1
if ~NoDecomposition
temp=NaN(NumberOfEndogenousVariables,NumberOfExogenousVariables);
if posterior
......@@ -283,6 +284,8 @@ if M_.exo_nbr > 1
end
end
end
end
else
fprintf(['Estimation::compute_moments_varendo: (conditional) variance decomposition only available at order=1. Skipping computations\n'])
end
fprintf(' Done!\n');
Markdown is supported
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