Skip to main content

mcnemar

Function mcnemar 

Source
pub fn mcnemar(b: u64, c: u64) -> Option<NonparametricResult>
Expand description

McNemar’s test for two paired binary classifiers: b is the count where A is right and B wrong, c where A is wrong and B right (the discordant cells of the 2×2 agreement table). Uses the continuity-corrected statistic (|b−c|−1)²/(b+c) ~ χ²₁. None if b + c == 0 (no discordance).