Skip to main content

tukey_hsd

Function tukey_hsd 

Source
pub fn tukey_hsd(
    groups: &[Vec<f64>],
    equal_var: bool,
) -> Result<TukeyHsdResult, ErrorsJSL>
Expand description

Tukey’s honestly significant difference test of all pairwise differences of means (SciPy’s tukey_hsd): |x̄_i − x̄_j| / se_ij against the studentized range with k treatments, where se_ij = √(MSE (1/n_i + 1/n_j) / 2) with the pooled variance and N − k degrees of freedom (the Tukey-Kramer form), or, with equal_var = false, the Games-Howell form se_ij = √((s_i²/n_i + s_j²/n_j)/2) with Welch’s degrees of freedom.