Skip to main content

contingency_test

Function contingency_test 

Source
pub fn contingency_test(
    observed: &Array2<f64>,
    lambda: f64,
) -> Result<(f64, f64, usize)>
Expand description

Compute a Cressie-Read power-divergence statistic for a contingency table.

ยงErrors

Returns an error when the table is empty, contains negatives, sums to zero, or has a zero expected frequency.