View source: R/filterSurvivalChanges.R
| filterSurvivalChanges | R Documentation |
Reduce the size of a survival result by removing time points at which the reported survival or cumulative-incidence probability is unchanged from the previous reported time. The first time point in every curve is always kept. Confidence limits for a retained time point are kept with its estimate.
filterSurvivalChanges(result)
result |
A |
Only survival_estimates rows are filtered. Event counts, summaries,
attrition, settings, and other result types are returned unchanged. This
makes the result suitable for plotSurvival(), while tables requesting an
exact removed time point will not be able to display that time.
A summarised_result with unchanged probabilities removed.
cdm <- mockMGUS2cdm()
result <- estimateSingleEventSurvival(
cdm,
targetCohortTable = "mgus_diagnosis",
outcomeCohortTable = "death_cohort"
)
compactResult <- filterSurvivalChanges(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.