Mann–Whitney U test R語言檢驗

小鲨鱼2018發表於2024-10-19

001、

set.seed(123)


group_A <- rnorm(30, mean = 5, sd = 1)  # 藥物A的效果
group_B <- rnorm(30, mean = 6, sd = 1)  # 藥物B的效果

u_test_result <- wilcox.test(group_A, group_B, alternative = "two.sided")

print(u_test_result)

相關文章