CohortSurvival Module Class
CohortSurvival.RdCohortSurvival 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 fromCohortSurvivalplot(
Plot) Plot module.tidyTable(
GTTable) GTTable moduletable(
Table) Table moduleinputPanel(
InputPanel) InputPanel module
Methods
Method new()
Initializer function
Usage
CohortSurvival$new(data, ...)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.