Mann–Whitney U test R语言检验

 

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)

。 

 

posted @ 2024-10-19 00:56  小鲨鱼2018  阅读(53)  评论(0编辑  收藏  举报