In-Class Exercise 4

A new article created using the Distill format.

Published

May 6, 2022

DOI

Getting Started

Setting up R packages

To start with, ggstatsplot and tidyverse packages will be launched using library().

packages = c('ggstatsplot', 'tidyverse')
for (p in packages){
  if(!require(p, character.only = T)){
    install.packages(p)
  }
}

importing data

exam <- read_csv('data/Exam_data.csv')

Working with ggstatsplot

ANOVA test

set seed when you want to use bayes

set.seed(1234)

ggbetweenstats(
  data = exam, 
  x = RACE,
  y = ENGLISH,
  type = "bayes",
  mean.ci = TRUE, 
  pairwise.comparisons = TRUE, 
  pairwise.display = "s",
  p.adjust.method = "fdr",
  messages = FALSE
)