pharmaverse / ggsurvfit

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

cox model updates #143

Closed ddsjoberg closed 1 year ago

ddsjoberg commented 1 year ago

What changes are proposed in this pull request?

If there is an GitHub issue associated with this pull request, please provide link.

closes #9

library(ggsurvfit)
#> Loading required package: ggplot2
library(survival)

survival::coxph(Surv(time, status) ~ age + strata(sex), data=ggsurvfit::df_lung) |>
  survfit2() |> 
  ggsurvfit() +
  add_confidence_interval() +
  add_censor_mark() +
  add_quantile() +
  add_risktable()

Created on 2023-03-06 with reprex v2.0.2


Reviewer Checklist (if item does not apply, mark is as complete)

When the branch is ready to be merged into master: