79234566

Date: 2024-11-28 15:56:31
Score: 0.5
Natty:
Report link

I can't confirm without a reproducible example but I'm fairly sure the problem is that status is considered a factor in your dataframe. You can put

dfit <- survfit2(Surv(time, as.numeric(status)) ~ intervention, data = Drugs_discon)
summary(dfit)
ggsurvfit(dfit)

This should produce the required plot

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Loris