R/Classes.R
StrataSettings.Rd
The StrataSettings class, encapsulating the age, gender and start-year + age breaks settings.
This class is used to specify the stratification settings for an analysis. The settings can indicate the statistics should be grouped by the age, gender, or start year, and any combination of those selections.
Example: age = T and gender = T will produce statisics by age, by gender, and by age and gender.
Note, when serializing with a library such as jsonlite, first call toList() on the R6 class before calling jsonlite::toJSON().
byAge
enables stratification by age
byGender
enables stratification by gender
byYear
enables stratification by start year of TAR
ageBreaks
a list of age breaks with at least 1 member
ageBreakList
a list of age breaks
new()
creates a new instance, using the provided data param if provided.
StrataSettings$new(data = list())