0

I have a code like that :

library("survival")
library("survminer")

data("lung")

res.cox <- coxph(Surv(time, status) ~ sex, data = lung)

x<-confint(res.cox)

I am looking to get all the confidence intervals, not only the upper and lower bands. So I will have a confidence interval for each participant (N=228). Actually, I need to plot the confidence intervals with their distributions.

Martin Gal
  • 16,640
  • 5
  • 21
  • 39
Ali Roghani
  • 495
  • 2
  • 7

1 Answers1

0

If you want it to assign it to the data is :


lung$CI<- predict(res.cox)

Ali Roghani
  • 495
  • 2
  • 7