Skip to content
Snippets Groups Projects
Verified Commit 329f0d2d authored by Willi Mutschler's avatar Willi Mutschler
Browse files

method_of_moments: Remove unused output from IRF Matching for GMM/SMM

parent 68b92a1a
Branches
Tags
1 merge request!2191IRF Matching
......@@ -819,6 +819,11 @@ if isoctave && isfield(options_mom_, 'prior_restrictions') && ...
% See https://savannah.gnu.org/bugs/?43215
options_mom_.prior_restrictions.routine = [];
end
if strcmp(options_mom_.mom.mom_method,'SMM') || strcmp(options_mom_.mom.mom_method,'GMM')
if isfield(oo_.mom,'irf_model_varobs') && isempty(oo_.mom.irf_model_varobs)
oo_.mom = rmfield(oo_.mom,'irf_model_varobs'); % remove empty field
end
end
if strcmp(options_mom_.mom.mom_method,'IRF_MATCHING') && ~isempty(options_mom_.mom.irf_matching_file.path) && ~strcmp(options_mom_.mom.irf_matching_file.path,'.')
rmpath(options_mom_.irf_matching_file.path); % remove path to irf_matching_file
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment