View source: R/subgroup_consistency_helpers.R
| extract_subgroup | R Documentation |
Extracts subgroup definition and membership from results.
extract_subgroup(df, top_result, index.Z, names.Z, confs_labels)
df |
Data.frame. Original analysis data. |
top_result |
Data.table row. Top subgroup result. |
index.Z |
Matrix. Factor indicators for all subgroups. |
names.Z |
Character vector. Factor column names. |
confs_labels |
Character vector. Human-readable labels. |
List with sg.harm, sg.harm_label, df_flag, sg.harm.id.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.