compute_moments_varendo.m: delete stale results field

Otherwise, results from old runs will not be updated
time-shift
Johannes Pfeifer 2020-06-26 18:19:16 +02:00
parent ac728c0492
commit f3329c2db6
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,9 @@ if strcmpi(type,'posterior')
if nargin==4
var_list_ = options_.varobs;
end
if isfield(oo_,'PosteriorTheoreticalMoments')
oo_=rmfield(oo_,'PosteriorTheoreticalMoments');
end
elseif strcmpi(type,'prior')
posterior = 0;
if nargin==4
@ -50,6 +53,9 @@ elseif strcmpi(type,'prior')
options_.prior_analysis_var_list = options_.varobs;
end
end
if isfield(oo_,'PriorTheoreticalMoments')
oo_=rmfield(oo_,'PriorTheoreticalMoments');
end
else
error('compute_moments_varendo:: Unknown type!')
end