The IncidenceAnalysis class, encapsulating the targets, outcomes and tars.
The targets, outcomes and tars fields are referencing IDs of the targetDef, outcomeDef and tarDefs R6 classes.
Note, when serializing with a library such as jsonlite, first call toList() on the R6 class before calling jsonlite::toJSON().
targetsA vector of target IDs from target definitions. Must be a vector.
outcomesA vector of outcome IDs from outcome definitions. Must be a vector.
tarsA vector of TAR IDs from time-at-risk definitions. Must be a vector.
new()creates a new instance, using the provided data param if provided.
IncidenceAnalysis$new(data = list())