Add at risk table and 95% confidence intervals to adjusted survival curves using survminer package in r
问题 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 but it doesn't mention what I need. Another question, would it be correct if I used the obtained weight variable (from iptw package) in the adjustment (as I have a column named weight in my actual dataset. Here is my code: library(survival);library(survminer) data(lung);names(lung) #fit <- coxph( Surv(time, status==2) ~ ph.karno +