Create mapping of binary representation to states displayed in final Sankey
Arguments
- id_data
List. One element for patient level order data, one element with states found in that data, one element with stages. Returned from
sankey_id_data. Pro tip: if you want to reduce number of stages, edit the stages vector.- none
Character. How to label the "empty" state. Default is "None".
- collapse_states
How to redefine states if combinations are anticipated. As a named
listit allows users to identify how states should be grouped with unique identifiers. As a namedvectorit assigns a hierarchy in the order that the states appear. DefaultNULL.- absorbing_vars
Named character vector. Variables in cohort that indicate date/day of states that members cannot transition out of. Names of the vector will be names of the states shown in the Sankey.
- censor_vars
Character vector. Variable names in cohort that indicate censoring date/day. If multiple,
sankey_list_makerwill use the minimum. Ifweight = FALSEthe Sankey will use the names of the vector to label the states shown. If unnamed will group together under "Censored".