tab1=matrix(c(84,55, 117,147),nc=2) prop.test(tab1, correct=TRUE)

Gives something like this:

2-sample test for equality of proportions without continuity correction data: tab1 X-squared = 9.457, df = 1, p-value = 0.002103 alternative hypothesis: two.sided 95 percent confidence interval: 0.05388769 0.23737875 sample estimates: prop 1 prop 2 0.4179104 0.2722772

Except where otherwise specified, all text and images on this page are copyright InfluentialPoints, all rights reserved. Images not copyright InfluentialPoints credit their source on web-pages attached via hypertext links from those images.