Suppose each group as 1000 people.
In Group 1, 500 people answer TRUE and 500 answer FALSE.
In Group 2, 200 people answer TRUE and 800 answer FALSE.
How does one tell if there is a significant difference between these independent groups?
---------UPDATE--------
The actual data is: Group 1: 5195 true, 2658 false (n = 7853) Group 2: 5579 true, 2297 false (n = 7876)
I used prop.test and chisq.test to check if there are significant differences between the groups. My R code and outputs are below. I am not sure how to interpret this:
R CODE: prop.test(c(5195,5579),c(7853,7876))
OUTPUT: 2-sample test for equality of proportions with continuity correction
data: c(5195, 5579) out of c(7853, 7876) X-squared = 39.737, df = 1, p-value = 2.906e-10 alternative hypothesis: two.sided 95 percent confidence interval: -0.06145244 -0.03219530 sample estimates: prop 1 prop 2 0.6615306 0.7083545
R CODE: chisq.test(rbind(c(2658,2297),c(5195,5579)))
OUTPUT: Pearson's Chi-squared test with Yates' continuity correction
data: rbind(c(2658, 2297), c(5195, 5579)) X-squared = 39.737, df = 1, p-value = 2.906e-10