Skip to main content

bootstrap

Function bootstrap 

Source
pub fn bootstrap(
    data: &[f64],
    n_resamples: usize,
    stat_fn: usize,
    seed: u64,
) -> Result<(f64, f64, f64, f64), String>
Expand description

Bootstrap confidence interval for a statistic (e.g., mean). Returns (point_estimate, ci_lower, ci_upper, standard_error). stat_fn is 0=mean, 1=median.