Skip to contents

This function extracts and combines tidy model summaries from the output of `run_linear_models()`. It supports optional p-value adjustment using standard multiple testing correction methods. The output is a single tidy tibble containing results from all models.

Usage

extract_model_summaries(model_output, p_adjust_method = NULL, verbose = TRUE)

Arguments

model_output

A named list of model results as returned by `run_linear_models()`.

p_adjust_method

Optional character string specifying the method for p-value adjustment. Must be one of: `"holm"`, `"hochberg"`, `"hommel"`, `"bonferroni"`, `"BH"`, `"BY"`, `"fdr"`, or `"none"`. If `NULL` (default), no adjustment is applied. Note: `"fdr"` is treated as an alias for `"BH"`.

verbose

Logical. If `TRUE` (default), prints a summary of the extraction process.

Value

A tibble combining all tidy model summaries, with optional p-value adjustment. Includes a `direction` column indicating the sign of the estimate (`"up"` or `"down"`).

Examples

if (FALSE) { # \dontrun{
# Extract all model summaries
extract_model_summaries(model_output)

# Apply Benjamini-Hochberg (FDR) correction
extract_model_summaries(model_output, p_adjust_method = "BH")

# Apply Bonferroni correction
extract_model_summaries(model_output, p_adjust_method = "bonferroni")

# Disable p-value adjustment explicitly
extract_model_summaries(model_output, p_adjust_method = "none")
} # }