This function performs statistical tests to validate ABC model results. It calculates p-values using hypergeometric tests and applies correction for multiple testing. The function is optimized to work with very large co-occurrence matrices.
validate_abc(
abc_results,
co_matrix,
alpha = 0.05,
correction = c("BH", "bonferroni", "none"),
filter_by_significance = FALSE
)A data frame with ABC results and statistical significance measures.
A data frame containing ABC results.
The co-occurrence matrix used to generate the ABC results.
Significance level (p-value threshold).
Method for multiple testing correction.
Logical. If TRUE, only returns significant results.