clc 
clearvars -except do_


paths.local             =   cd;
paths.results           =   [paths.local '\replic_aux_codes\results\'];
paths.model_variations  =   [paths.local '\replic_aux_codes\model_variations\'];
paths.models            = { [paths.local '\models\GarciaGuardaKirchnerTranamil_2019\XMAS\']
                            [paths.local '\models\GarciaGuardaKirchnerTranamil_2019\MAS_proxy\']
                            [paths.local '\models\GarciaGuerra_2020\']};
           
addpath([paths.local '\replic_aux_codes'])


                        %%name             Long Name            options     params      e_prior     e_obs    e_command       
    model_reestim =  {  'XMAS_reestimate'  'Restimation codes'	1           0         	0           0        1       }
    
    paths.model         	= paths.models{1};
    models.modfile          = 'XMAS_dtbc';
    models.specifications   = model_reestim;
    
    solve_models(models,paths);

  %%

cd(paths.local) 