Evaluates a single subgroup for consistency across random splits using a fixed number of splits.
evaluate_subgroup_consistency(
m,
index.Z,
names.Z,
df,
found.hrs,
n.splits,
hr.consistency,
pconsistency.threshold,
pconsistency.digits = 2,
maxk,
confs_labels,
details = FALSE
)Named numeric vector with consistency results, or NULL if criteria not met.
Integer. Index of the subgroup to evaluate.
Data.table or matrix. Factor indicators for all subgroups.
Character vector. Names of factor columns.
Data.frame. Original data with Y, Event, Treat, id columns.
Data.table. Subgroup hazard ratio results.
Integer. Number of random splits for consistency evaluation.
Numeric. Minimum HR threshold for consistency.
Numeric. Minimum proportion of splits meeting consistency.
Integer. Rounding digits for consistency proportion.
Integer. Maximum number of factors in a subgroup.
Character vector. Labels for confounders.
Logical. Print details during execution.