* Do file showing use of stcomply command, using the example MASS trial data subset. ******************************************************************************* use mass, clear stset timeout, id(id) origin(dateran) fail(aaadeath) scale(365.25) stcox status stcomply status scanned, graph grfit set seed 100 gen wt=1 replace wt=-5129/4994 if status==2 & scanned==0 gen exposed=status==2 & scanned==1 cox timeout exposed [iw=wt], dead(aaadeath) nohr version 7: bs "cox timeout exposed [iw=wt], dead(aaadeath)" "_b[exposed]", reps(1000)