Research Question 2

A Chi-Square Test of Independence was conducted to determine if there was an association between student nationality and scholarship status.

library(readxl)
library(rcompanion)

A4Q2 <- read_excel("C:/Users/DeSheila Hatcher/OneDrive/Desktop/Assignment 4/A4Q2.xlsx")

observed <- table(A4Q2$status, A4Q2$scholarship)
observed
##                
##                   0   1
##   Domestic       39 111
##   International 118  32
barplot(observed,
        beside = TRUE,
        col = rainbow(nrow(observed)),
        legend = rownames(observed))

chi_result <- chisq.test(observed)
chi_result
## 
##  Pearson's Chi-squared test with Yates' continuity correction
## 
## data:  observed
## X-squared = 81.297, df = 1, p-value < 2.2e-16
cramer_v <- rcompanion::cramerV(observed)
cramer_v
## Cramer V 
##   0.5272

The results showed that there was an association between student nationality and scholarship status, χ²(1) = 81.30, p < .001.

The association was large (Cramer’s V = .53).