26 lines
694 B
Matlab
26 lines
694 B
Matlab
function sbvar(M, options)
|
|
|
|
clean_sbvar_files();
|
|
|
|
options.data = read_variables(options.datafile,options.varobs,[],options.xls_sheet,options.xls_range);
|
|
|
|
if options.forecast == 0
|
|
options.forecast = 4;
|
|
end
|
|
|
|
if options.ms.upper_cholesky
|
|
if options.ms.lower_cholesky
|
|
error(['Upper Cholesky and lower Cholesky decomposition can''t be ' ...
|
|
'requested at the same time!'])
|
|
else
|
|
options.ms.restriction_fname = 'upper_cholesky';
|
|
end
|
|
elseif options.ms.lower_cholesky
|
|
options.ms.restriction_fname = 'lower_cholesky';
|
|
elseif ~isempty(options.ms.Qi) && ~isempty(options.ms.Ri)
|
|
options.ms.restriction_fname = 'exclusions';
|
|
end
|
|
|
|
ms_mardd(options);
|
|
end
|