pharmaverse / ggsurvfit

http://www.danieldsjoberg.com/ggsurvfit/
Other
67 stars 19 forks source link

Feature request: Add type = "cloglog" (log minus log survival) #194

Closed avishaitsur closed 1 month ago

avishaitsur commented 3 months ago

The problem: Log minus log survival curves are widely used to assess the assumption of proportionality of hazards. While plotting these curves is available using the survival and survminer packages, it is currently unavailable in ggsurvfit.

Proposed solution: Add an option of type = "cloglog" to ggsurvfit::tidy_survfit. Specifically, this would need to be added in the:

Example of a figure using the survival package cloglog_plot

Example of the desired figure using the ggsurvfit package cloglog

ddsjoberg commented 3 months ago

Dear @avishaitsur ,

i think that is a great request. I see you've done the research into he package's internals. Would you like to submit a PR to add this?