#group #test #statistical-analysis #difference #comparison #value #tukey

app tukey_test

A Rust library for performing the Tukey statistical test, a method for comparing multiple groups simultaneously. It calculates the critical q value for a given number of groups and total observations, allowing for pairwise group comparisons and identification of significant differences.

1 unstable release

Uses old Rust 2015

0.1.1 Jun 30, 2023
0.1.0 Jun 30, 2023

#537 in Math

Download history 9/week @ 2024-02-26 30/week @ 2024-04-01 86/week @ 2024-04-15

116 downloads per month

MIT license

5KB

Rust Tukey Test

This script performs a Tukey test based on user inputs. It calculates the critical q value for a Tukey test, given the number of groups and total observations. The critical q value can be used to determine if there are statistically significant differences between the means of multiple groups.

Background

The Tukey test, also known as the Tukey's honest significant difference (HSD) test, is a statistical test used to compare the means of multiple groups. It is often applied after performing an analysis of variance (ANOVA) to determine if there are significant differences between the means of the groups.

The test calculates a critical value (q value) based on the number of groups and the total number of observations. By comparing the differences between the means of the groups to this critical value, the Tukey test helps identify which groups have significantly different means from each other.

The Tukey test is useful in various fields, such as experimental research, social sciences, and business analytics. It allows researchers and analysts to gain insights into the significant differences between multiple groups, enabling them to make informed decisions or draw meaningful conclusions.

Prerequisites

  • Rust programming language (compiler and tools) installed. You can download Rust from the official website: https://www.rust-lang.org

How to Run the Code

Please run the following commands in your terminal.

cargo add tukey_test@0.1.1 cargo build cargo run -- <group_count> <total_count> $ rustc tukey_test.rs

Example of Using Crate for Your Project

use tukey_test::tukey_test;

fn main() { let group_count = 4; let total_count = 20;

let q_value = tukey_test(group_count, total_count);

println!("The critical q value for the Tukey test is: {:.4}", q_value);

}

No runtime deps