Returns the top subgroup(s) and recommended treatment flags.
Usage
sg_consistency_out(
df,
result_new,
sg_focus,
index.Z,
names.Z,
details = FALSE,
plot.sg = FALSE,
by.risk = 12,
confs_labels
)Arguments
- df
Data.frame. Original analysis data.
- result_new
Data.table. Sorted subgroup results.
- sg_focus
Character. Sorting focus criterion.
- index.Z
Matrix. Subgroup factor indicators.
- names.Z
Character vector. Factor column names.
- details
Logical. Print details.
- plot.sg
Logical. Plot subgroup curves.
- by.risk
Numeric. Risk interval for plotting.
- confs_labels
Character vector. Human-readable labels.