View source: R/trajectoryGeneration.R
updateMergedStates | R Documentation |
Updates stateCohortLabels, stateCohortPriorityOrder, allowedStatesList, and stateCohortAbsorbing when new merged states are introduced.
updateMergedStates(
data,
stateCohortLabels,
stateCohortPriorityOrder,
allowedStatesList,
stateCohortAbsorbing
)
data |
A dataframe containing cohort definitions. |
stateCohortLabels |
A vector of existing state labels. |
stateCohortPriorityOrder |
A vector defining the priority order of states. |
allowedStatesList |
A named list of allowed state transitions. |
stateCohortAbsorbing |
A vector of absorbing states that prevent further transitions. |
updateAutomaticallyForMergedStates |
A boolean flag to enable automatic updates. |
A list containing updated stateCohortLabels, stateCohortPriorityOrder, allowedStatesList, and stateCohortAbsorbing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.