extract_subgroup: Extract Subgroup Information

View source: R/subgroup_consistency_helpers.R

extract_subgroupR Documentation

Extract Subgroup Information

Description

Extracts subgroup definition and membership from results.

Usage

extract_subgroup(df, top_result, index.Z, names.Z, confs_labels)

Arguments

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.

Value

List with sg.harm, sg.harm_label, df_flag, sg.harm.id.


forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.