remove_near_duplicate_subgroups: Remove Near-Duplicate Subgroups

View source: R/subgroup_consistency_helpers.R

remove_near_duplicate_subgroupsR Documentation

Remove Near-Duplicate Subgroups

Description

Removes subgroups with nearly identical statistics (HR, n, E, etc.) to reduce redundancy in candidate list.

Usage

remove_near_duplicate_subgroups(
  hr_subgroups,
  tolerance = 0.001,
  details = FALSE
)

Arguments

hr_subgroups

Data.table of subgroup results.

tolerance

Numeric. Tolerance for numeric comparison (default 0.001).

details

Logical. Print details about removed duplicates.

Value

Data.table with near-duplicate rows removed.


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