In-Class Exercise 4

Author

Dabbie Neo

Published

May 6, 2023

Modified

June 4, 2023

1. Getting Started

Install and launching R packages

pacman::p_load(rstatix,gt,patchwork,tidyverse,ggstatsplot,ggpubr)

Importing data

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

2. Visualising Normal Distribution

2.1 Using QQplot

ggplot(exam_data,
       aes(sample=ENGLISH))+
  stat_qq() +
  stat_qq_line()
Note

We can see that the points deviate significantly from the straight diagonal line. This is a clear indication that the set of data is not normally distributed.

2.1.1 Combining statistical graph and analysis table

ggplot(exam_data,
       aes(sample=ENGLISH))+
  stat_qq() +
  stat_qq_line()