pharmaverse / ggsurvfit

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

Feature request: Function to add confidence bands #147

Closed tobiasmuetze closed 1 year ago

tobiasmuetze commented 1 year ago

The function add_confidence_interval() add pointwise confidence intervals to the Kaplan-Meier curve. In same settings confidence bands (and not pointwise confidence intervals) are of interest.

It would be great to add a function add_confidence_bands() to the package. To the best of my knowledge, confidence bands are not calculated by the survival package. However, the R package km.ci provides confidence bands.

ddsjoberg commented 1 year ago

Can you please provide more details about the CI methods you're interested in?

ddsjoberg commented 1 year ago

Hi @tobiasmuetze , please feel free to re-open this issue when you have time to provide code and data examples. thanks