I have a code like that : library("survival") library("survminer") data("lung") res.cox <- coxph(Surv(time, status) ~ sex, data = lung) x<-confint(res.
set<-c(1,1,1,2,2,2) gender<-c(1,0,1,0,1,0) smoke<-c(1,1,0,0, 1,0) case_control<-c(1,0,0,1,0,0) data<-data.frame(set, gender, smoke, case_c
I'm using the survminer package to try to generate survival and hazard function graphs for a longitudinal student-level dataset that has 5 subgroups of interest
I want to add at-risk table and 95% confidence intervals to adjusted survival curves. Something like survival curves below (Link). I saw some relevant code here
I am doing a study looking at the long-term survival of patients admitted to an Intensive Care Unit. I have done a multivariate Cox regression to describe the a