Formats the detailed output from forestsearch_KfoldOut(outall=TRUE)
into publication-ready gt tables. This includes ITT estimates, original subgroup
estimates, and K-fold subgroup estimates.
cv_summary_tables(
kfold_out,
title = "Cross-Validation Summary",
subtitle = NULL,
show_metrics = TRUE,
digits = 3,
font_size = 12,
use_gt = TRUE
)If use_gt = TRUE, returns a list with gt table objects:
combined_table: Combined ITT and subgroup estimates
itt_table: ITT estimates only
original_table: Original full-data subgroup estimates
kfold_table: K-fold subgroup estimates
metrics_table: Agreement and finding metrics (if show_metrics = TRUE)
If use_gt = FALSE, returns equivalent data.frames.
List. Result from forestsearch_KfoldOut(res, outall = TRUE).
Must contain itt_tab, SG_tab_original, SG_tab_Kfold,
and optionally tab_all.
Character. Main title for combined table. Default: "Cross-Validation Summary".
Character. Subtitle for table. Default: NULL (auto-generated).
Logical. Include agreement and finding metrics in output. Default: TRUE.
Integer. Decimal places for numeric formatting. Default: 3.
Integer. Font size in pixels. Default: 12.
Logical. Return gt table if TRUE, data.frame if FALSE. Default: TRUE.
cv_metrics_tables for formatting forestsearch_tenfold() results