Hi!
I try extract p-values from coxph model. My covarianse as a factor. That I get when run summary(fit):
Call:
coxph(formula = Surv(OS, OS_status) ~ PS_at_IO, data = analysis)
n= 453, number of events= 280
coef exp(coef) se(coef) z Pr(>|z|)
PS_at_IO1 0.5699 1.7680 0.1606 3.549 0.000387 ***
PS_at_IO2 1.1077 3.0273 0.1751 6.327 2.5e-10 ***
PS_at_IO3 1.8515 6.3692 0.2137 8.666 < 2e-16 ***
PS_at_IO4 3.4599 31.8147 0.5350 6.467 1.0e-10 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
exp(coef) exp(-coef) lower .95 upper .95
PS_at_IO1 1.768 0.56560 1.291 2.422
PS_at_IO2 3.027 0.33033 2.148 4.266
PS_at_IO3 6.369 0.15700 4.190 9.682
PS_at_IO4 31.815 0.03143 11.148 90.794
Concordance= 0.691 (se = 0.017 )
Likelihood ratio test= 93.18 on 4 df, p=<2e-16
Wald test = 111.2 on 4 df, p=<2e-16
Score (logrank) test = 146.2 on 4 df, p=<2e-16
And that I get when try extract only p-value (I google sulution):
summary(fit_cox)$coefficients[5]
[1] 1.768025
I really don't understand why this. Is it problem that my covariance as.factor?