*! version 0.1.0 2013-12-06 | vanheuvelen long

* tpr:collect results from simulations at given N

program define tpr_sim_collect

    matrix OLmat = nullmat(OLmat) \ OLvec
    matrix BRmat = nullmat(BRmat) \ BRvec
    matrix GLmat = nullmat(GLmat) \ GLvec
    matrix WAmat = nullmat(WAmat) \ WAvec
    matrix LRmat = nullmat(LRmat) \ LRvec
    matrix PRmat = nullmat(PRmat) \ PRvec
	matrix OPmat = nullmat(OPmat) \ OPvec
    foreach nm of varlist $x_names {
        matrix WA`nm'mat = nullmat(WA`nm'mat) \ WA`nm'vec
        matrix BR`nm'mat = nullmat(BR`nm'mat) \ BR`nm'vec
    }

end
exit