pub struct LogLikelihood {
pub yates: bool,
}Expand description
Log-likelihood ratio (G-test) for discrete data (power divergence with λ = 0).
The per-cell statistic is 2 · Σ O·ln(O/E). 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 LogLikelihood
impl LogLikelihood
Trait Implementations§
Source§impl CITest for LogLikelihood
impl CITest for LogLikelihood
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 LogLikelihood
impl Clone for LogLikelihood
impl Copy for LogLikelihood
Source§impl Debug for LogLikelihood
impl Debug for LogLikelihood
Source§impl Default for LogLikelihood
impl Default for LogLikelihood
impl Eq for LogLikelihood
Source§impl PartialEq for LogLikelihood
impl PartialEq for LogLikelihood
impl StructuralPartialEq for LogLikelihood
Auto Trait Implementations§
impl Freeze for LogLikelihood
impl RefUnwindSafe for LogLikelihood
impl Send for LogLikelihood
impl Sync for LogLikelihood
impl Unpin for LogLikelihood
impl UnsafeUnpin for LogLikelihood
impl UnwindSafe for LogLikelihood
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