pub struct ModifiedLikelihood {
pub yates: bool,
}Expand description
Modified log-likelihood (Neyman) power-divergence test for discrete data
(λ = −1). The per-cell statistic is 2 · Σ E·ln(E/O); a structural zero
(O = 0 with E > 0) drives the statistic to +∞ and hence the p-value to
0.
When yates is set, Yates’ continuity correction is applied on 2×2
(sub-)tables. Cramér’s V is reported as the effect size.
Fields§
§yates: boolWhether to apply Yates’ continuity correction on 2×2 (sub-)tables.
Implementations§
Trait Implementations§
Source§impl CITest for ModifiedLikelihood
impl CITest for ModifiedLikelihood
Source§fn test_impl(
&self,
data: &Dataset,
x: usize,
y: usize,
z: &[usize],
) -> Result<CIResult, CIError>
fn test_impl( &self, data: &Dataset, x: usize, y: usize, z: &[usize], ) -> Result<CIResult, CIError>
Test-specific computation for
x ⊥ y | z. Implementations may assume
the query has already been validated by CITest::test; call sites
should use CITest::test, not this method. Read moreSource§fn validate(&self, _data: &Dataset) -> Result<(), CIError>
fn validate(&self, _data: &Dataset) -> Result<(), CIError>
Check the test’s own configuration against
data (e.g. kernel
parameters, column names). The default accepts everything. Bindings call
this at construction so a bad configuration fails early; the provided
CITest::test also runs it on every call. Read moreSource§impl Clone for ModifiedLikelihood
impl Clone for ModifiedLikelihood
impl Copy for ModifiedLikelihood
Source§impl Debug for ModifiedLikelihood
impl Debug for ModifiedLikelihood
Source§impl Default for ModifiedLikelihood
impl Default for ModifiedLikelihood
impl Eq for ModifiedLikelihood
Source§impl PartialEq for ModifiedLikelihood
impl PartialEq for ModifiedLikelihood
impl StructuralPartialEq for ModifiedLikelihood
Auto Trait Implementations§
impl Freeze for ModifiedLikelihood
impl RefUnwindSafe for ModifiedLikelihood
impl Send for ModifiedLikelihood
impl Sync for ModifiedLikelihood
impl Unpin for ModifiedLikelihood
impl UnsafeUnpin for ModifiedLikelihood
impl UnwindSafe for ModifiedLikelihood
Blanket Implementations§
impl<T> Boilerplate for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more