pub enum SummaryData {
MeanSe,
MeanClNormal {
level: f64,
},
MeanClBoot {
level: f64,
b: usize,
},
MeanSdl {
mult: f64,
},
MedianHilow {
level: f64,
},
}Expand description
A fun.data-style summary: from a group’s values it returns (y, ymin, ymax)
together — needed for measures where the interval depends on the centre (mean
± CI), which the scalar SummaryFuns cannot express. These mirror R’s
Hmisc helpers used by ggplot2::stat_summary.
Variants§
MeanSe
Mean ± standard error of the mean (mean_se).
MeanClNormal
Mean with a normal-theory t confidence interval (mean_cl_normal).
MeanClBoot
Mean with a bootstrap percentile CI (mean_cl_boot), b resamples.
MeanSdl
Mean ± mult × sd (mean_sdl; ggplot2 default mult = 2).
MedianHilow
Median with outer sample quantiles (median_hilow; level = 0.95 →
median with the 2.5% / 97.5% quantiles).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SummaryData
impl RefUnwindSafe for SummaryData
impl Send for SummaryData
impl Sync for SummaryData
impl Unpin for SummaryData
impl UnsafeUnpin for SummaryData
impl UnwindSafe for SummaryData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more