In-class Exercise 4

A new article created using the Distill format.

Sui Tianyue (MITB, Singapore Management University)https://scis.smu.edu.sg/
2022-05-19

Distill is a publication format for scientific and technical writing, native to the web.

Learn more about using Distill for R Markdown at https://rstudio.github.io/distill.

Getting Started

Setting up R package

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)
  }
  library(p, character.only =T)
}  

Importing data

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

ANOVA test

set.seed(12345)
ggbetweenstats(
  data = exam,
  x = RACE, 
  y = ENGLISH,
  type = "np"
)