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