## ── Attaching packages ────────────────────────────────────────────── tidyverse 1.3.0 ──
## ✓ ggplot2 3.3.2 ✓ purrr 0.3.4
## ✓ tibble 3.0.4 ✓ dplyr 1.0.2
## ✓ tidyr 1.1.2 ✓ stringr 1.4.0
## ✓ readr 1.4.0 ✓ forcats 0.5.0
## ── Conflicts ───────────────────────────────────────────────── tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
##
## Attaching package: 'rstatix'
## The following object is masked from 'package:stats':
##
## filter
dat1 <- read_excel("/Users/riku/desktop/0122.xlsx")
dat1$Group <- as.factor(dat1$Group)
dat1 %>%
group_by(Group) %>%
get_summary_stats(Score, type = "common")D、E、Fは正規分布に従わないので、Kruskal-Wallis Testを使います。
#wilcos_testで多重比較する場合
pwc2 <- dat1 %>%
wilcox_test(Score ~ Group, p.adjust.method = "bonferroni")
pwc2