Skip to main content

chi2_yates_py

Function chi2_yates_py 

Source
pub fn chi2_yates_py(
    py: Python<'_>,
    observed: &Bound<'_, PyArray2<i64>>,
) -> PyResult<Py<PyAny>>
Expand description

Chi-square test with Yates’ continuity correction for 2x2 tables.

Applies Yates’ correction to improve the chi-square approximation for small sample sizes in 2x2 contingency tables.

Parameters: observed: 2x2 array of observed frequencies

Returns: Dictionary with ‘statistic’, ‘pvalue’, ‘df’, and ‘expected’