Skip to main content

tukey_hsd_py

Function tukey_hsd_py 

Source
pub fn tukey_hsd_py(
    py: Python<'_>,
    args: &Bound<'_, PyTuple>,
    alpha: f64,
) -> PyResult<Py<PyAny>>
Expand description

Tukey’s Honestly Significant Difference (HSD) post-hoc test.

Performs pairwise comparisons between group means after a significant ANOVA result. Controls the family-wise error rate.

Parameters: *args: Variable number of group arrays (minimum 2 groups) alpha: Significance level (default: 0.05)

Returns: List of dictionaries, each containing: - group1: Index of first group - group2: Index of second group - mean_diff: Mean difference between groups - pvalue: P-value for the comparison - significant: Whether the difference is significant at alpha level