pub fn dunnett<U: UniformGenerator>(
samples: &[&[f64]],
control: &[f64],
alternative: DunnettAlternative,
rng: &mut U,
) -> Result<DunnettResult, ErrorsJSL>Expand description
Dunnett’s test comparing each treatment group with a control (SciPy’s dunnett):
tᵢ = (x̄ᵢ − x̄₀)/(s √(1/nᵢ + 1/n₀)) with the pooled standard deviation s on
N − k − 1 degrees of freedom. The statistics are jointly multivariate t with correlations
ρᵢⱼ = 1/√((1 + n₀/nᵢ)(1 + n₀/nⱼ)), and each p-value is the probability that the largest
(absolute) statistic exceeds tᵢ, from the multivariate t distribution function — so the
p-values carry its quasi-Monte Carlo error (about 10⁻³ with SciPy’s 1000 points per
dimension).