*! version 0.1.0 2013-12-06 | van heuvelen long freese

* tpr: save results when gologit2 fails

program define tpr_sim_GOLMfailed

    scalar WAstatus = .f
    matrix WAvec = WAtried, WAstatus, ., ., ., .
    scalar LRstatus = .f
    matrix LRvec = LRtried, LRstatus, ., ., ., .
    scalar GLstatus = .f
    matrix GLvec = GLtried, GLstatus, GLconverged, GLrc, ., ///
        GLnullvec, GLnullvec, GLicnullvec
    foreach nm of varlist $x_names {
        matrix WA`nm'vec = .f, ., ., ., .
    }
    matrix PRvec = PRnullvec

end
exit