stcrprep, events(cod2) keep(age mostdep sex rcsage?) trans(1 2 3) ///
>    wtstpm2 censcov(mostdep sex rcsage?) every(1)
{\smallskip}         
gen event = cod2 == failcode
{\smallskip}
stset tstop [iw=weight_c], failure(event) enter(tstart) noshow 
{\smallskip}
tab failcode, gen(cause)
rename cause1 _cancer
rename cause2 _cvd
rename cause3 _other
