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

compute_moments_varendo: skip computations for various unsupported cases

parent dedfd0c0
...@@ -37,6 +37,22 @@ function oo_ = compute_moments_varendo(type, options_, M_, oo_, var_list_) ...@@ -37,6 +37,22 @@ function oo_ = compute_moments_varendo(type, options_, M_, oo_, var_list_)
fprintf('Estimation::compute_moments_varendo: I''m computing endogenous moments (this may take a while)... \n'); fprintf('Estimation::compute_moments_varendo: I''m computing endogenous moments (this may take a while)... \n');
if options_.order==1
if options_.one_sided_hp_filter
fprintf('Estimation::compute_moments_varendo: theoretical moments incompatible with one-sided HP filter. Skipping computations.\n')
return
end
else
if ~options_.pruning
fprintf('Estimation::compute_moments_varendo: theoretical moments at order>1 require pruning. Skipping computations.\n')
return
else
if options_.one_sided_hp_filter || options_.hp_filter || options_.bandpass.indicator
fprintf(['Estimation::compute_moments_varendo: theoretical pruned moments incompatible with filtering. Skipping computations\n'])
end
end
end
if strcmpi(type,'posterior') if strcmpi(type,'posterior')
posterior = 1; posterior = 1;
if nargin==4 if nargin==4
......
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