RESEARCH SCENARIO 2

A private all-girls elementary school has developed two different uniform designs: Design A and Design B. They are hoping at least one of the designs will be preferred by both mothers and fathers. Analyze the data to determine if there is a relationship between uniform design and parent.

Hypotheses

H0(Null Hypotheses): There is no assication between parents and uniform design. H1(Alternate Hypotheses): There is an assocation between parents and uniform design.

Result

A Chi-Square Test of Independence was conducted to examine the association between parents (father, mother) and uniform design preference (Design A, Design B) among 100 participants. There was no statistical association between parent type and uniform design preference, χ²(1, N = 100) = 3.24, p = .07, The effect size was small (Cramér’s V = 0.18).

# LOAD THE PACKAGE
# You must always reload the package you want to use. 
# The code for this task is provided below. Remove the hashtag below to convert the note into code.

library(readxl)
dataset <- read_excel("C:/Users/chkas/Downloads/RQ1.xlsx")

# =========================
# VISUALLY DISPLAY THE DATA
# =========================

# PURPOSE
# Visually display the data.
# A frequency table can be used instead of a bar graph to visually display the data.

# CREATE A FREQUENCY TABLE
# Replace "dataset" with the name of your dataset (without the .xlsx)
# Replace "Variable" with the R code name of your variable
# Remove the hashtag to use the code.
# The code for this task is provided below. Remove the hashtag below to convert the note into code.

observed <- table(dataset$Dessert)

# VIEW YOUR FREQUENCY TABLE
# View the observed frequencies.
# The code for this task is provided below. Remove the hashtag below to convert the note into code.

print(observed)
## 
## Cheesecake  ChocoCake   Tiramisu 
##        171        258        119