tukey_test

Crates.iotukey_test
lib.rstukey_test
version0.1.1
sourcesrc
created_at2023-06-30 23:18:28.483006
updated_at2023-06-30 23:50:07.044261
descriptionA 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
id905106
size10,508
(TechieTeee)

documentation

README

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);

}

Commit count: 0

cargo fmt