pub struct GoodnessOfFit {
pub null_deviance: f64,
pub residual_deviance: f64,
pub df_null: f64,
pub df_residual: f64,
pub mcfadden_r2: f64,
pub aic: f64,
pub bic: f64,
}Expand description
Bundle of overall logistic goodness-of-fit statistics.
Fields§
§null_deviance: f64Deviance of the intercept-only (null) model, −2ℓ₀.
residual_deviance: f64Residual deviance of the fitted model, −2ℓ.
df_null: f64Degrees of freedom of the null deviance (n − 1).
df_residual: f64Degrees of freedom of the residual deviance (n − p).
mcfadden_r2: f64McFadden’s pseudo-R², 1 − ℓ/ℓ₀.
aic: f64Akaike information criterion, deviance + 2p.
bic: f64Bayesian information criterion, deviance + ln(n)·p.
Trait Implementations§
Source§impl Clone for GoodnessOfFit
impl Clone for GoodnessOfFit
Source§fn clone(&self) -> GoodnessOfFit
fn clone(&self) -> GoodnessOfFit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GoodnessOfFit
Source§impl Debug for GoodnessOfFit
impl Debug for GoodnessOfFit
Source§impl PartialEq for GoodnessOfFit
impl PartialEq for GoodnessOfFit
impl StructuralPartialEq for GoodnessOfFit
Auto Trait Implementations§
impl Freeze for GoodnessOfFit
impl RefUnwindSafe for GoodnessOfFit
impl Send for GoodnessOfFit
impl Sync for GoodnessOfFit
impl Unpin for GoodnessOfFit
impl UnsafeUnpin for GoodnessOfFit
impl UnwindSafe for GoodnessOfFit
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.