This class encapsulates the other R6 Class elements that define an IncidenceDesign
The IncidenceDesign class encapsulates the following: - Cohort Definitions - Target Definitions - Outcome Definitions - Time At Risk Definitions - A List of Analyses - Concept Sets - Subgruops - Strata Settings Note, when serializing with a library such as jsonlite, first call toList() on the R6 class before calling jsonlite::toJSON(), or call toJSON directy on this class.
cohortDefs
A list of cohort definitions. Must be a list of CohortDefinition
conceptSets
A list of concept set expressions. Currently unused.
targetDefs
A list of cohort references to be used as target cohorts. Must be a list of CohortReference
outcomeDefs
A list of outcome definitions. Must be a list of Outcome
timeAtRiskDefs
A list of time-at-risk definitions. Must be a list of TimeAtRisk
analysisList
A list of analyses, containing the T-O-TAR combinations to perform. Must be a list of IncidenceAnalysis
subgroups
A list of subgroups. Must be a list of CohortSubgroup
strataSettings
The strata settings for this design. Must be a class StrataSettings
studyWindow
a study window for this design. Must be a list of class DateRange
new()
creates a new instance, using the provided data param if provided.
IncidenceDesign$new(data = list())