combine_folds_mean_diff: Combine fold-level test statistics from cross-validation

View source: R/41_refined_anchored_lasso.R

combine_folds_mean_diffR Documentation

Combine fold-level test statistics from cross-validation

Description

Aggregates fold-level test statistics and variances to compute an overall test statistic and p-value.

Usage

combine_folds_mean_diff(fold_data, verbose = FALSE)

Arguments

fold_data

A list of results from process_fold_mean_diff(), one for each fold.

verbose

Logical. Whether to print diagnostic messages. Default is FALSE.

Value

A list containing:

p_value

Two-sided p-value for the overall test statistic.

test_statistic

Standardized test statistic.

fold_data

Original input list, for reference or diagnostics.


HMC documentation built on June 8, 2025, 10:32 a.m.