In-class Exercise 4

A short description of the post.

Joyce Tseng https://www.linkedin.com/in/joyce-tseng-a7115a1aa/ (School of Computing and Information Systems (SMU))https://scis.smu.edu.sg/master-it-business
2022-05-07

Getting Started

Setting up R packages

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

packages = c('ggstatsplot', 'tidyverse', 'PMCMRplus', 'rstantools')
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(1234)

ggbetweenstats(
  data = exam,
  x = RACE, 
  y = ENGLISH,
  type = "bayes"
)