ISSS608 In-Class Exercise #4

In-Class Exercise #4 done by me, myself and I (and guided by Prof Kam).

Published

May 6, 2022

DOI

Getting Started

Setting up R packages

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

packages = c('ggstatsplot','tidyverse')

for(p in packages){
  if(!require(p, character.only = T)){
    install.packages(p)
    }
  library(p, character.only = T)
  }

Importing data

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

Working with ggstatsplot

ANOVA test

Parametric

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

Non-parametric

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

Bayes

set.seed(1234)

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