updateMergedStates: Update Cohort State Information for Merged States

View source: R/trajectoryGeneration.R

updateMergedStatesR Documentation

Update Cohort State Information for Merged States

Description

Updates stateCohortLabels, stateCohortPriorityOrder, allowedStatesList, and stateCohortAbsorbing when new merged states are introduced.

Usage

updateMergedStates(
  data,
  stateCohortLabels,
  stateCohortPriorityOrder,
  allowedStatesList,
  stateCohortAbsorbing
)

Arguments

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.

Value

A list containing updated stateCohortLabels, stateCohortPriorityOrder, allowedStatesList, and stateCohortAbsorbing.


HealthInformaticsUT/Cohort2Trajectory documentation built on March 1, 2025, 7:47 p.m.