Import('*')

source = ['#source/derived/bayes_bootstrap/Mueller_Spinnewijn_Topa_2021/get_weights.py',
          '#source/derived/bayes_bootstrap/infrm_index.csv',
          '#temp/MST2021/MST/EMPIRICAL_ANALYSIS/Codes_and_Data/SCE/sce_datafile.dta']
target = ['#datastore/output/derived_large/bayes_bootstrap_weights/Mueller_Spinnewijn_Topa_2021_Weights.dta']
env.Python(target, source)

source = ['#source/derived/bayes_bootstrap/Mueller_Spinnewijn_Topa_2021/sce_tab3.do',
          '#datastore/output/derived_large/bayes_bootstrap_weights/Mueller_Spinnewijn_Topa_2021_Weights.dta',
          '#temp/MST2021/MST/EMPIRICAL_ANALYSIS/Codes_and_Data/SCE/sce_datafile.dta']
target = ['#temp/MST2021_bayes/bayes_rep/tab3_replicates.dta']
env.Stata(target, source)

source = ['#source/derived/bayes_bootstrap/Mueller_Spinnewijn_Topa_2021/sce_bootstrap.do',
          '#datastore/output/derived_large/bayes_bootstrap_weights/Mueller_Spinnewijn_Topa_2021_Weights.dta',
          '#temp/MST2021/MST/EMPIRICAL_ANALYSIS/Codes_and_Data/SCE/sce_datafile.dta']
target = ['#temp/MST2021_bayes/MST/STATISTICAL_FRAMEWORK/sce_bootstrap.xlsx',
          '#temp/MST2021_bayes/MST/STATISTICAL_FRAMEWORK/sce_bootstrap_tl.xlsx',
          '#temp/MST2021_bayes/MST/STATISTICAL_FRAMEWORK/sce_bootstrap_resid.xlsx']
env.Stata(target, source)

source = ['#source/derived/bayes_bootstrap/Mueller_Spinnewijn_Topa_2021/estimation.m',
          '#temp/MST2021_bayes/MST/STATISTICAL_FRAMEWORK/sce_bootstrap.xlsx',
          '#temp/MST2021_bayes/MST/STATISTICAL_FRAMEWORK/sce_bootstrap_tl.xlsx',
          '#temp/MST2021_bayes/MST/STATISTICAL_FRAMEWORK/sce_bootstrap_resid.xlsx',
          '#temp/MST2021/MST/EMPIRICAL_ANALYSIS/Codes_and_Data/SCE/sce_datafile.dta']
target = ['#temp/MST2021_bayes/bayes_rep/tab5_replicates.csv']
env.Matlab(target, source)

source = ['#source/derived/bayes_bootstrap/Mueller_Spinnewijn_Topa_2021/clean_weights.py',
          '#temp/MST2021_bayes/bayes_rep/tab3_replicates.dta',
          '#temp/MST2021_bayes/bayes_rep/tab5_replicates.csv',
          '#source/derived/bayes_bootstrap/infrm_index.csv']
target = ['#output/derived/bayes_bootstrap/Mueller_Spinnewijn_Topa_2021_Marginal.csv']
env.Python(target, source)
