Table with survival summary
tableSurvival.Rd
Table with survival summary
Arguments
- x
Result from estimateSingleEventSurvival or estimateCompetingRiskSurvival
- times
Times at which to report survival in the summary table
- timeScale
Time unit to report survival in: days, months or years
- splitStrata
If TRUE strata will be split into columns, otherwise "strata_name" and "strata_level" columns will be kept.
- header
A vector containing which elements should go into the header. Allowed are: cdm_name, group, strata, additional, variable, estimate, and settings.
- type
Type of desired formatted table, possibilities: "gt", "flextable", and "tibble".
- groupColumn
Columns to use as group labels.
- .options
Named list with additional formatting options. CohortSurvival::optionsTableSurvival() shows allowed arguments and their default values.
Examples
# \donttest{
cdm <- mockMGUS2cdm()
surv <- estimateSingleEventSurvival(cdm,
targetCohortTable = "mgus_diagnosis",
outcomeCohortTable = "death_cohort")
#> - Getting survival for target cohort 'mgus_diagnosis' and outcome cohort
#> 'death_cohort'
#> Getting overall estimates
tableSurvival(surv, times = c(50,100,365))
#> Warning: The `split` argument of `visOmopTable()` is deprecated as of visOmopResults
#> 0.4.0.
#> ℹ The deprecated feature was likely used in the CohortSurvival package.
#> Please report the issue to the authors.
# }