pub struct NormalIndPower;Expand description
Power of a two-sample z-test for independent samples (normal approximation).
effect_size is the standardized mean difference, nobs1 the size of the
first sample, and ratio the size of sample two relative to sample one
(nobs2 = ratio·nobs1; ratio = 0 gives the one-sample test). Mirrors the
reference NormalIndPower with ddof = 0.
Implementations§
Source§impl NormalIndPower
impl NormalIndPower
Sourcepub fn power(
&self,
effect_size: f64,
nobs1: f64,
alpha: f64,
ratio: f64,
alternative: Alternative,
) -> f64
pub fn power( &self, effect_size: f64, nobs1: f64, alpha: f64, ratio: f64, alternative: Alternative, ) -> f64
Power at the given configuration.
Sourcepub fn solve_power(
&self,
effect_size: f64,
alpha: f64,
power: f64,
ratio: f64,
alternative: Alternative,
) -> f64
pub fn solve_power( &self, effect_size: f64, alpha: f64, power: f64, ratio: f64, alternative: Alternative, ) -> f64
Solve for nobs1 achieving power at the given configuration.
Trait Implementations§
Source§impl Clone for NormalIndPower
impl Clone for NormalIndPower
Source§fn clone(&self) -> NormalIndPower
fn clone(&self) -> NormalIndPower
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 NormalIndPower
Source§impl Debug for NormalIndPower
impl Debug for NormalIndPower
Source§impl Default for NormalIndPower
impl Default for NormalIndPower
Source§fn default() -> NormalIndPower
fn default() -> NormalIndPower
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NormalIndPower
impl RefUnwindSafe for NormalIndPower
impl Send for NormalIndPower
impl Sync for NormalIndPower
impl Unpin for NormalIndPower
impl UnsafeUnpin for NormalIndPower
impl UnwindSafe for NormalIndPower
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