Home > matlab > ms-sbvar > sbvar.m

sbvar

PURPOSE ^

function sbvar(M, options)

SYNOPSIS ^

function sbvar(M, options)

DESCRIPTION ^

 function sbvar(M, options)

 INPUTS
    M_:          (struct)    model structure
    options_:    (struct)    options

 OUTPUTS
   none.

 ALGORITHM
   ...

 SPECIAL REQUIREMENTS
   none.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function sbvar(M, options)
0002 % function sbvar(M, options)
0003 %
0004 % INPUTS
0005 %    M_:          (struct)    model structure
0006 %    options_:    (struct)    options
0007 %
0008 % OUTPUTS
0009 %   none.
0010 %
0011 % ALGORITHM
0012 %   ...
0013 %
0014 % SPECIAL REQUIREMENTS
0015 %   none.
0016 %
0017 
0018 % Copyright (C) 2011 Dynare Team
0019 %
0020 % This file is part of Dynare.
0021 %
0022 % Dynare is free software: you can redistribute it and/or modify
0023 % it under the terms of the GNU General Public License as published by
0024 % the Free Software Foundation, either version 3 of the License, or
0025 % (at your option) any later version.
0026 %
0027 % Dynare is distributed in the hope that it will be useful,
0028 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0029 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0030 % GNU General Public License for more details.
0031 %
0032 % You should have received a copy of the GNU General Public License
0033 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
0034 
0035 clean_sbvar_files();
0036 
0037 options.data = read_variables(options.datafile,options.varobs,[],options.xls_sheet,options.xls_range);
0038 
0039 if options.forecast == 0
0040     options.forecast = 4;
0041 end
0042 
0043 if options.ms.upper_cholesky
0044     if options.ms.lower_cholesky
0045         error(['Upper Cholesky and lower Cholesky decomposition can''t be ' ...
0046                'requested at the same time!'])
0047     else
0048         options.ms.restriction_fname = 'upper_cholesky';
0049     end
0050 elseif options.ms.lower_cholesky
0051     options.ms.restriction_fname = 'lower_cholesky';
0052 elseif ~isempty(options.ms.Qi) && ~isempty(options.ms.Ri)
0053     options.ms.restriction_fname = 'exclusions';
0054 end
0055 
0056 ms_mardd(options);
0057 end

Generated on Tue 22-May-2012 02:40:23 by m2html © 2005