pub struct DunnettResult {
pub control: usize,
pub treatments: usize,
pub alpha: f64,
pub d_critical: f64,
pub df: usize,
pub mse: f64,
pub group_means: Vec<f64>,
pub group_sizes: Vec<usize>,
pub comparisons: Vec<DunnettComparison>,
}Expand description
Full results of a Dunnett’s test.
Fields§
§control: usizeIndex of the control group.
treatments: usizeNumber of treatment groups (excluding control).
alpha: f64Significance level used.
d_critical: f64Critical value from the Dunnett distribution.
df: usizeDegrees of freedom (within groups).
mse: f64Mean square error (pooled within-group variance).
group_means: Vec<f64>Mean of each group (including control).
group_sizes: Vec<usize>Number of observations in each group.
comparisons: Vec<DunnettComparison>Comparisons of each treatment against the control.
Implementations§
Source§impl DunnettResult
impl DunnettResult
Sourcepub fn significant_treatments(&self) -> Vec<&DunnettComparison>
pub fn significant_treatments(&self) -> Vec<&DunnettComparison>
Returns only the comparisons that are statistically significant.
Trait Implementations§
Source§impl Clone for DunnettResult
impl Clone for DunnettResult
Source§fn clone(&self) -> DunnettResult
fn clone(&self) -> DunnettResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DunnettResult
impl Debug for DunnettResult
Auto Trait Implementations§
impl Freeze for DunnettResult
impl RefUnwindSafe for DunnettResult
impl Send for DunnettResult
impl Sync for DunnettResult
impl Unpin for DunnettResult
impl UnsafeUnpin for DunnettResult
impl UnwindSafe for DunnettResult
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