58.75% of Rural high schools and 56.25% of high schools
classified as Town offer advanced courses, while 77.55% of
City high schools and 76.19% of Suburban high
schools offer advanced courses.
##
## Pearson's Chi-squared test
##
## data: table(chi_data$locale_code_4, chi_data$advm_ind)
## X-squared = 14.647, df = 3, p-value = 0.002145
## X-squared
## 14.64679
## [1] 0.002144774
## Number of cases in table: 347
## Number of factors: 2
## Test for independence of all factors:
## Chisq = 14.647, df = 3, p-value = 0.002145
The results of the chi-square test are significant with a p-value of .002, suggesting there is a significant relationship between school type and the status of advanced course offerings.
\[X^2 = 14.647, df = 3, p = .002\]