CohortSurvival Module Class
CohortSurvival.Rd
CohortSurvival module that shows a that supports results from the CohortSurvival package.
Details
The module consists of the following:
- "PlotPlotly"
Interactive Plotly plot, visualizing the data.
- "GTTable"
gttable visualizing the tidy data
- "InputPanel"
Input panel dealing with user input
- "Table"
basic table visualizing the raw data
Super class
DarwinShinyModules::ShinyModule
-> CohortSurvival
Active bindings
data
(
SummarisedResult
) Summarised result object fromCohortSurvival
plot
(
Plot
) Plot module.tidyTable
(
GTTable
) GTTable moduletable
(
Table
) Table moduleinputPanel
(
InputPanel
) InputPanel module
Examples
{
# \donttest{
library(DarwinShinyModules)
if (
require(
"CohortSurvival",
character.only = TRUE,
quietly = TRUE,
warn.conflicts = FALSE
)
) {
library(CDMConnector)
library(CohortSurvival)
cdm <- CohortSurvival::mockMGUS2cdm()
MGUS_death <- estimateSingleEventSurvival(
cdm,
targetCohortTable = "mgus_diagnosis",
outcomeCohortTable = "death_cohort",
strata = list(
c("age_group"),
c("sex"),
c("age_group", "sex")
)
)
cs <- CohortSurvival$new(data = MGUS_death)
if (interactive()) {
preview(cs)
}
}
# }
}
#> - Getting survival for target cohort 'mgus_diagnosis' and outcome cohort
#> 'death_cohort'
#> Getting overall estimates
#> `eventgap`, `outcome_washout`, `censor_on_cohort_exit`, `follow_up_days`, and
#> `minimum_survival_days` casted to character.