Skip to main content

friedman_py

Function friedman_py 

Source
pub fn friedman_py(
    py: Python<'_>,
    data: &Bound<'_, PyArray2<f64>>,
) -> PyResult<Py<PyAny>>
Expand description

Friedman test for repeated measures.

Tests whether k treatments have different effects across n subjects. This is a nonparametric alternative to repeated measures ANOVA.

Parameters: data: 2D array with shape (n_subjects, n_treatments)

Returns: Dictionary with ‘statistic’ and ‘pvalue’ keys