Crates.io | tukey_test |
lib.rs | tukey_test |
version | 0.1.1 |
source | src |
created_at | 2023-06-30 23:18:28.483006 |
updated_at | 2023-06-30 23:50:07.044261 |
description | 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. |
homepage | |
repository | |
max_upload_size | |
id | 905106 |
size | 10,508 |
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.
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.
cargo add tukey_test@0.1.1
cargo build
cargo run -- <group_count> <total_count>
$ rustc tukey_test.rs
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);
}