Formats the find_summary and sens_summary outputs from
forestsearch_tenfold or forestsearch_Kfold
into publication-ready gt tables.
cv_metrics_tables(
cv_result,
sg_definition = NULL,
title = "Cross-Validation Metrics",
show_percentages = TRUE,
digits = 1,
include_raw = FALSE,
table_style = c("combined", "separate", "minimal"),
use_gt = TRUE
)Depending on table_style:
"combined": A single gt table (or data.frame)
"separate": A list with agreement_table and finding_table
"minimal": A single-row gt table (or data.frame)
If include_raw = TRUE, also includes sens_out and find_out
matrices in the returned list.
List. Result from forestsearch_tenfold() or
forestsearch_Kfold(). Must contain find_summary and
sens_summary elements.
Character vector. Subgroup factor definitions for
labeling (optional). If NULL, extracted from cv_result$sg_analysis.
Character. Main title for combined table. Default: "Cross-Validation Metrics".
Logical. Display metrics as percentages (0-100) instead of proportions (0-1). Default: TRUE.
Integer. Decimal places for formatting. Default: 1.
Logical. Include raw matrices (sens_out, find_out)
in the output for detailed analysis. Default: FALSE.
Character. One of "combined", "separate", or "minimal".
"combined": Single table with both agreement and finding metrics
"separate": Two separate gt tables
"minimal": Compact single-row summary
Default: "combined".
Logical. Return gt table(s) if TRUE, data.frame(s) if FALSE. Default: TRUE.
cv_summary_tables for formatting forestsearch_KfoldOut(outall=TRUE) results