Learn R Programming

forestsearch (version 0.1.0)

summarize_factor_presence_robust: Summarize Factor Presence Across Bootstrap Subgroups

Description

Analyzes how often each individual factor appears in identified subgroups, extracting base factor names from full definitions and identifying common specific definitions.

Usage

summarize_factor_presence_robust(
  results,
  maxk = 2,
  threshold = 10,
  as_gt = TRUE
)

Value

List with base_factors and specific_factors data.frames or gt tables

Arguments

results

Data.table or data.frame. Bootstrap results with M.1, M.2, etc. columns

maxk

Integer. Maximum number of factors allowed

threshold

Numeric. Percentage threshold for including specific definitions (default: 10)

as_gt

Logical. Return gt tables (TRUE) or data.frames (FALSE)