Skip to content
Snippets Groups Projects
Commit 6a224e78 authored by Michel Juillard's avatar Michel Juillard
Browse files

computes posterior distribution of conditional variance decomposition only if...

computes posterior distribution of conditional variance decomposition only if option conditional_variance_decomposition is specified in estimation
parent 34828e41
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,11 @@ NumberOfEndogenousVariables = rows(var_list_); ...@@ -55,7 +55,11 @@ NumberOfEndogenousVariables = rows(var_list_);
NumberOfExogenousVariables = M_.exo_nbr; NumberOfExogenousVariables = M_.exo_nbr;
list_of_exogenous_variables = M_.exo_names; list_of_exogenous_variables = M_.exo_names;
NumberOfLags = options_.ar; NumberOfLags = options_.ar;
if isfield(options_,'conditional_variance_decomposition')
Steps = options_.conditional_variance_decomposition; Steps = options_.conditional_variance_decomposition;
else
Steps = 0;
end
% COVARIANCE MATRIX. % COVARIANCE MATRIX.
if posterior if posterior
...@@ -104,6 +108,7 @@ else ...@@ -104,6 +108,7 @@ else
end end
end end
% CONDITIONAL VARIANCE DECOMPOSITION. % CONDITIONAL VARIANCE DECOMPOSITION.
if Steps
if posterior if posterior
for i=1:NumberOfEndogenousVariables for i=1:NumberOfEndogenousVariables
for j=1:NumberOfExogenousVariables for j=1:NumberOfExogenousVariables
...@@ -117,3 +122,4 @@ else ...@@ -117,3 +122,4 @@ else
end end
end end
end end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment