Crates.io | cronbach_alpha_lib |
lib.rs | cronbach_alpha_lib |
version | 0.1.0 |
source | src |
created_at | 2023-07-13 09:57:21.722313 |
updated_at | 2023-07-13 09:57:21.722313 |
description | Library for get cronbach alpha value to check your reliable question |
homepage | |
repository | https://github.com/rickhysis/cronbach_alpha_lib |
max_upload_size | |
id | 915188 |
size | 6,615 |
run this test
$ cargo test -- --nocapture
How to called this library and easiest and most efficient method of creating
use cronbach_alpha_lib::reliable;
let data = vec![
vec![1, 2, 1, 2, 3, 2, 1, 2, 3, 2], // Q1 = question 1
vec![3, 2, 3, 1, 3, 3, 1, 3, 3, 2], // Q2 = question 2
vec![3, 2, 3, 2, 3, 3, 1, 2, 3, 2], // Q3 = question 3
vec![3, 2, 3, 2, 4, 3, 1, 2, 4, 3], // Q4 = question 4
vec![2, 3, 3, 3, 4, 3, 1, 2, 2, 1], // Q5 = question 5
];
let result: f32 = reliable(&data); // 0.838
assert_eq!(is_reliable(result), true); // is reliable because more than 0.6
If this repository has been useful to you, please consider saying "thanks" by donating money, even if it's just one cents. This shows your appreciation and keeps me motivated to work on further software improvements.
Please send bitcoin to the following address:
1BBqhnWbr9TBE1d1QXWpD23BiGKQXRQMPb
Please send ETH to the following address: