Learn R Programming

forestsearch (version 0.1.0)

remove_near_duplicate_subgroups: 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
)

Value

Data.table with near-duplicate rows removed.

Arguments

hr_subgroups

Data.table of subgroup results.

tolerance

Numeric. Tolerance for numeric comparison (default 0.001).

details

Logical. Print details about removed duplicates.