diff --git a/R/ard_survival_survfit.R b/R/ard_survival_survfit.R index 71c86e3b..93704d74 100644 --- a/R/ard_survival_survfit.R +++ b/R/ard_survival_survfit.R @@ -36,10 +36,10 @@ #' library(survival) #' library(ggsurvfit) #' -#' survfit(Surv_CNSR(AVAL, CNSR) ~ TRTA, cards::ADTTE) |> +#' survfit(Surv_CNSR(AVAL, CNSR) ~ TRTA, data = cards::ADTTE) |> #' ard_survival_survfit(times = c(60, 180)) #' -#' survfit(Surv_CNSR(AVAL, CNSR) ~ TRTA, cards::ADTTE) |> +#' survfit(Surv_CNSR(AVAL, CNSR) ~ TRTA, data = cards::ADTTE, conf.int = 0.90) |> #' ard_survival_survfit(probs = c(0.25, 0.5, 0.75)) #' #' # Competing Risks Example --------------------------- diff --git a/man/ard_survival_survfit.Rd b/man/ard_survival_survfit.Rd index c5f39619..910619ac 100644 --- a/man/ard_survival_survfit.Rd +++ b/man/ard_survival_survfit.Rd @@ -45,10 +45,10 @@ survival fit model. library(survival) library(ggsurvfit) -survfit(Surv_CNSR(AVAL, CNSR) ~ TRTA, cards::ADTTE) |> +survfit(Surv_CNSR(AVAL, CNSR) ~ TRTA, data = cards::ADTTE) |> ard_survival_survfit(times = c(60, 180)) -survfit(Surv_CNSR(AVAL, CNSR) ~ TRTA, cards::ADTTE) |> +survfit(Surv_CNSR(AVAL, CNSR) ~ TRTA, data = cards::ADTTE, conf.int = 0.90) |> ard_survival_survfit(probs = c(0.25, 0.5, 0.75)) # Competing Risks Example ---------------------------