compute_moments_varendo: skip computations for various unsupported cases

time-shift
Johannes Pfeifer 2021-01-17 17:44:35 +01:00 committed by Stéphane Adjemian (Charybdis)
parent dedfd0c08f
commit 314948ce34
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 16 additions and 0 deletions

View File

@ -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');
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')
posterior = 1;
if nargin==4