如图,survivor和non-survivor两组之间男性比例的差异比较,可以用prop.test()么?如下:
> prop.test(c(15628,2407),c(28062,4489))
2-sample test for equality of proportions with continuity correction
data: c(15628, 2407) out of c(28062, 4489)
X-squared = 6.6343, df = 1, p-value = 0.01
alternative hypothesis: two.sided
95 percent confidence interval:
0.004877538 0.036542663
sample estimates:
prop 1 prop 2
0.5569097 0.5361996
得到p值为0.01。可以这样的吧?