if $simutype == 1 { * Import estimates from global estdir "$indata/partial" } else if $simutype ==2 | $simutype == 3 { * Import estimates from global estdir "$indata/all" } noi di "Loading Estimates from [$estdir]" set trace off * IMPORT ESTIMATES do put_est.mata #d; foreach var in $depvars hatotax iearnx eq5d isret_wd admin_ssi {; mata: _getestimates("$estdir/m`var'","$estdir/s`var'", "coef_`var'"); }; #d cr set trace off noi di "Loading estimates from [$ster]" * Loads all estimates local all_ests :dir "$ster" files "*.ster" foreach est in `all_ests' { noi di "Loading estimate: `est'" est use "$ster/`est'" local est_name = substr("`est'",1,length("`est'")-5) est store `est_name' }