Testing, testing, 1 2 3.
-
Login or Register
- Log in with
use melanoma, clear keep if stage==1 /* restrict to localised */ stset surv_mm, fail(status==1 2) id(id) scale(12) strs using popmort, br(0(0.5)10) mergeby(_year sex _age) /// by(sex agegrp) notables save(replace) use grouped if sex==1 & agegrp==3, clear twoway (line cp end, lw(medthick)) /// (line cp_e2 end, lw(medthick)), /// yti("Survival") /// ylabel(0(0.2)1, format(%3.1f)) /// xti("Years from diagnosis") xla(0(1)10) /// legend(order(1 "Observed" 2 "Expected") ring(0) pos(7) col(1)) graph export "graph.png", replace
Comment