pub struct CressieRead {
pub yates: bool,
}Expand description
Cressie-Read power-divergence test for discrete data (λ = 2/3), the recommended compromise between Pearson and the likelihood-ratio statistics.
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§
Source§impl CressieRead
impl CressieRead
Trait Implementations§
Source§impl CITest for CressieRead
impl CITest for CressieRead
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 CressieRead
impl Clone for CressieRead
impl Copy for CressieRead
Source§impl Debug for CressieRead
impl Debug for CressieRead
Source§impl Default for CressieRead
impl Default for CressieRead
impl Eq for CressieRead
Source§impl PartialEq for CressieRead
impl PartialEq for CressieRead
impl StructuralPartialEq for CressieRead
Auto Trait Implementations§
impl Freeze for CressieRead
impl RefUnwindSafe for CressieRead
impl Send for CressieRead
impl Sync for CressieRead
impl Unpin for CressieRead
impl UnsafeUnpin for CressieRead
impl UnwindSafe for CressieRead
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