pub struct Summary {Show 17 fields
pub n_observations: usize,
pub n_parameters: usize,
pub df_residual: f64,
pub has_intercept: bool,
pub coefficients: Vec<CoefficientRow>,
pub r_squared: f64,
pub adj_r_squared: f64,
pub f_statistic: FStatistic,
pub residual_std_error: f64,
pub log_likelihood: f64,
pub aic: f64,
pub bic: f64,
pub condition_number: f64,
pub durbin_watson: f64,
pub jarque_bera: JarqueBera,
pub breusch_pagan: BreuschPagan,
pub white: WhiteTest,
}Expand description
A structured snapshot of every diagnostic in the crate for one fit.
Summary is structured data first: every field is a real number you can
read programmatically. The Display impl is a convenience
layer that renders it as a statsmodels-style table — it is not the primary
interface, so you never have to parse text to get a value back out.
Build it with OlsFit::summary.
Fields§
§n_observations: usizeNumber of observations.
n_parameters: usizeNumber of parameters.
df_residual: f64Residual degrees of freedom.
has_intercept: boolWhether an intercept is present.
coefficients: Vec<CoefficientRow>One row per coefficient.
r_squared: f64R².
adj_r_squared: f64Adjusted R².
f_statistic: FStatisticOverall F-test.
residual_std_error: f64Residual standard error s.
log_likelihood: f64Gaussian log-likelihood.
aic: f64Akaike information criterion.
bic: f64Bayesian information criterion.
condition_number: f64Design-matrix condition number.
durbin_watson: f64Durbin-Watson statistic.
jarque_bera: JarqueBeraJarque-Bera normality test.
breusch_pagan: BreuschPaganBreusch-Pagan heteroskedasticity test.
white: WhiteTestWhite’s heteroskedasticity test.
Implementations§
Source§impl Summary
impl Summary
Sourcepub fn max_cooks_distance(fit: &OlsFit) -> f64
pub fn max_cooks_distance(fit: &OlsFit) -> f64
Maximum absolute Cook’s distance across observations, recomputed from the
fit — a convenience for callers that want a single influence headline
number without walking the full vector. (Not stored on Summary because
it is per-observation; use crate::influence::cooks_distance for the
full vector.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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
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,
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.