pharmaverse / ggsurvfit

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

Example risk table w/ weights #178

Closed mattsecrest closed 8 months ago

mattsecrest commented 8 months ago

What changes are proposed in this pull request? Small updates to add_risktable() examples to help clarify how to handle the common issue of weighted KM curves.

The default add_risktable() behavior contains too many digits in the N at risk and N events:

image

You can format this by passing glue syntax to the risktable_stats argument, but it was not previously obvious to users.

image

Just suggested a very light example.

ddsjoberg commented 8 months ago

looks great! thank you for the PR!!