Skip to main content

bootstrap_ci

Function bootstrap_ci 

Source
pub fn bootstrap_ci(
    data: &[f64],
    b: usize,
    alpha: f64,
    seed: u64,
    method: CiMethod,
    statistic: impl Fn(&[f64]) -> f64,
) -> Option<BootstrapCi>
Expand description

Bootstrap confidence interval for statistic at confidence 1 − alpha (alpha in (0,1), e.g. 0.05 → 95%). None if data is empty, b < 2, or alpha is out of range.