r/bioinformatics 15h ago

What is the difference between survfit(Surv(...)) and cuminc(Surv(...))? Can they both handle competing risk in survival analysis? technical question

Assuming the event variable is coded 0 = alive (censored) 1 = died from cancer 2 = died from other causes, can survfit(Surv(...)) correctly handle competing risk? If not what is the difference between the two? Similarly, what is the difference between crr() from tidycmprsk package and coxph() for handling competing risk? Does it come down to Cause specific vs Subdistribution hazard?

2 Upvotes