1

有没有办法为多个输入运行 coxph。这里我使用了 input hsa_let_7b_5p

coxph(Surv(Time, Status)~ hsa_let_7b_5p,  data=as.data.frame(test))


Call:
    coxph(formula = Surv(Time, Status) ~ hsa_let_7b_5p, data = as.data.frame(test))


                   coef exp(coef) se(coef)    z    p
    hsa_let_7b_5p 0.169     1.184    0.173 0.98 0.33

    Likelihood ratio test=0.94  on 1 df, p=0.333
    n= 91, number of events= 45 
4

1 回答 1

0

我不太清楚这是否回答了您的意思或您提出的问题,但您可以在公式的右侧添加更多回归变量(在 ~ 之后)

coxph(Surv(Time, Status)~ hsa_let_7b_5p + x + y,  data=as.data.frame(test))

其中 x & y 是数据框中其他变量(列)的名称。

您可能希望在某些时候阅读交互和分层

于 2016-05-04T15:41:35.500 回答