Skip to main content

wilcoxon_py

Function wilcoxon_py 

Source
pub fn wilcoxon_py(
    py: Python<'_>,
    x: &Bound<'_, PyArray1<f64>>,
    y: &Bound<'_, PyArray1<f64>>,
    zero_method: &str,
    correction: bool,
) -> PyResult<Py<PyAny>>
Expand description

Wilcoxon signed-rank test for paired samples.

Parameters:

  • x: First array of observations
  • y: Second array of observations (paired with x)
  • zero_method: How to handle zero differences: “wilcox” (default), “pratt”
  • correction: Whether to apply continuity correction (default: True)

Returns:

  • Dict with ‘statistic’, ‘pvalue’