Apply Outcome Hierarchy to Patients
apply_outcome_hierarchy.Rd
This function applies a series of outcome hierarchies to patient trimester data. It combines outcomes for patients, adds outcome flags, and applies five levels of outcome hierarchy logic. The final outcome hierarchy is returned as a data frame with distinct records, sorted by enrolid.
Arguments
- trimester_hierarchy_final
A data frame containing patient data with applied trimester hierarchy.
Value
A data frame with the applied outcome hierarchy logic, containing distinct records sorted by enrolid.
Examples
if (FALSE) {
trimester_hierarchy_final <- apply_trimester_hierarchy(patients)
outcome_hierarchy_final <- apply_outcome_hierarchy(trimester_hierarchy_final)
}