Skip to content
Snippets Groups Projects
Verified Commit 9cc0acab authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

MoM: fix reading of XLS-files by assigning sheet info to base workspace

Closes #1840

(cherry picked from commit 176baa22)
parent 28acdce8
No related branches found
No related tags found
No related merge requests found
Pipeline #6884 passed
......@@ -206,6 +206,14 @@ options_mom_ = set_default_option(options_mom_,'nobs',NaN); % number of o
options_mom_ = set_default_option(options_mom_,'prefilter',false); % demean each data series by its empirical mean and use centered moments
options_mom_ = set_default_option(options_mom_,'xls_sheet',1); % name of sheet with data in Excel
options_mom_ = set_default_option(options_mom_,'xls_range',''); % range of data in Excel sheet
% temporary workaround for https://git.dynare.org/Dynare/dseries/-/issues/51
if options_mom_.xls_sheet~=1
evalin('base','options_.xls_sheet=options_mom_.xls_sheet');
end
if ~isempty(options_mom_.xls_range)
evalin('base','options_.xls_range=options_mom_.xls_range');
end
% Recursive estimation and forecast are not supported
if numel(options_mom_.nobs)>1
error('method_of_moments: Recursive estimation and forecast for samples is not supported. Please set an integer as ''nobs''.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment