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