Skip to main content

multipletests

Function multipletests 

Source
pub fn multipletests(
    pvalues: &[f64],
    alpha: f64,
    method: &str,
) -> StatsResult<MultipleCorrectionResult>
Expand description

Applies a multiple testing correction by method name.

This is a convenience function that dispatches to the appropriate correction method based on the given name string.

§Arguments

  • pvalues - Slice of raw p-values
  • alpha - Significance level
  • method - Method name: “bonferroni”, “holm”, “hochberg”, “fdr_bh”, “fdr_by”, “sidak”

§Returns

A MultipleCorrectionResult with adjusted p-values and rejection decisions.