set ms-sbvar paths in dynare_config

time-shift
Houtan Bastani 2011-05-25 15:57:39 +02:00
parent 2b2de22956
commit e3a3cebff8
3 changed files with 4 additions and 15 deletions

View File

@ -43,6 +43,10 @@ addpath([dynareroot '/kalman/likelihood'])
addpath([dynareroot '/AIM/'])
addpath([dynareroot '/partial_information/'])
addpath([dynareroot '/ms-sbvar/'])
addpath([dynareroot '/ms-sbvar/cstz']);
addpath([dynareroot '/ms-sbvar/identification']);
addpath([dynareroot '/ms-sbvar/switching_specification']);
addpath([dynareroot '/ms-sbvar/mhm_specification']);
addpath([dynareroot '/parallel/'])
addpath([dynareroot '/gsa/'])

View File

@ -1,13 +1,5 @@
function ms_sbvar(ms_flag, M, options)
dynareroot = strrep(which('dynare'),'dynare.m','');
ms_root = [dynareroot '/ms-sbvar'];
addpath([ms_root '/cstz']);
addpath([ms_root '/identification']);
addpath([ms_root '/switching_specification']);
addpath([ms_root '/mhm_specification']);
clean_ms_files(M.fname);
options.data = read_variables(options.datafile,options.varobs,[],options.xls_sheet,options.xls_range);

View File

@ -28,13 +28,6 @@ function ms_sbvar_setup(options_)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
dynareroot = strrep(which('dynare'),'dynare.m','');
ms_root = [dynareroot '/ms-sbvar'];
addpath([ms_root '/cstz']);
addpath([ms_root '/identification']);
addpath([ms_root '/switching_specification']);
addpath([ms_root '/mhm_specification']);
if ~isfield(options_.ms,'initial_year')
error('Must set initial_year option');
end