# Cold1 Example # Test whether the number of colds is independent of the # treatment using a chi-squared test for independence. table = matrix(scan( ), 2, 2, byrow=T) 31 109 17 122 cat("2x2 Contingency Table for Cold1 Example:\n") print(table) chisq.test(table, correct=F)