*! version 0.1.0 2013-12-06 | $simdta

* tpr: setup matrices and globals for iterations for given N

program define tpr_sim_itersetup

    global insample = "s" + "$samplesize" + "i" + "$isample"
    return clear
    ereturn clear
    foreach nm in OL GL BR LR WA PR {
        scalar `nm'tried = 0
        capture drop `nm'vec
    }
    foreach nm of varlist $x_names {
        capture drop BR`nm'vec
        capture matrix drop WA`nm'vec
    }

end
exit