R报错记录:cox回归模型建立: an id statement is required for multi-state models
在网上找了一套常规的乳癌带随访的数据,在做多因素Cox回归时遇到了如下报错:>f=coxph(Surv(time,status)~age1+er+histgrad+pr+ln_yesno,bc)Errorincoxph(Surv(time,status)~age1+er+histgrad+pr+ln_yesno,:anidstatementisrequiredformulti-statemodel