View source: R/tableSurvival.R
| riskTable | R Documentation |
riskTable() is kept for backwards compatibility. Use
tableSurvivalEvents() in new code.
riskTable(
x,
eventGap = NULL,
header = c("estimate"),
type = NULL,
groupColumn = NULL,
hide = c("result_id", "estimate_type"),
style = NULL,
.options = list()
)
x |
Result from estimateSingleEventSurvival or estimateCompetingRiskSurvival. |
eventGap |
Event gap defining the times at which to report the risk table information. Must be one of the eventGap inputs used for the estimation function. If NULL, all available are reported. |
header |
A vector specifying the elements to include in the header. The order of elements matters, with the first being the topmost header. Elements in header can be:
|
type |
Character string specifying the desired output table format.
See |
groupColumn |
Columns to use as group labels, to see options use
*tidy: The tidy format applied to column names replaces "_" with a space and
converts to sentence case. Use |
hide |
Columns to drop from the output table. By default, |
style |
Defines the visual formatting of the table. This argument can be provided in one of the following ways:
|
.options |
A named list with additional formatting options.
|
A tibble containing the risk table information (n_risk, n_events, n_censor) for all times within the event gap specified.
cdm <- mockMGUS2cdm()
surv <- estimateSingleEventSurvival(cdm,
targetCohortTable = "mgus_diagnosis",
outcomeCohortTable = "death_cohort")
riskTable(surv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.