各位老师:
我想用stata计算生存率
use "D:\Data\colon.dta", clear
gen id = _n
stset surv_mm, fail(status==0 1) id(id) scale(12)
strs using popmort if stage==1, br(0 0.5 1(1)10) mergeby(sex _age _year) by(sex) list(n d w cp cp_e2 cr_e2)
stata总提示:
(using data not sorted
r(5)
I 已经在colon,dta and popmort.dta对sex, age 和year变量进行顺序排序,但还是提示未排序,请教如何解决?