sort_subgroups_preview: Sort Subgroups by Focus at consistency stage (consistency not available at this point)
Description
Sorts a data.table of subgroup results according to the specified focus.
Usage
sort_subgroups_preview(result_new, sg_focus)
Value
A sorted data.table.
Arguments
- result_new
A data.table of subgroup results.
- sg_focus
Sorting focus: "hr", "hrMaxSG", "maxSG", "hrMinSG", "minSG".