首页 > 解决方案 > 如何解释> 2组中R中`prop.test`的估计比例输出?

问题描述

如果我有两组:

a <- c(11,14,25,34)
b <- c(23,12,42,23)

我已经通过堆叠它们构建了一个数据框:

group <- cbind(a, b)
rownames(group) <- c('icecream','pancakes','pizza','burger')

Aprop.test(group)会产生以下结果:

    4-sample test for equality of proportions without continuity
    correction

data:  group
X-squared = 9.506, df = 3, p-value = 0.02327
alternative hypothesis: two.sided
sample estimates:
   prop 1    prop 2    prop 3    prop 4 
0.3235294 0.5384615 0.3731343 0.5964912 

我如何解释道具 1 到 4?例如,prop 1 = 0.324 是否表示 a 和 b 之间有 32.4% 的重叠?a 预测 b 的准确率是 32.4% 吗?我尝试group通过绑定ab相反的顺序(即group <- cbind(b, a))创建,这也产生了不同的输出prop.test

标签: rstatisticscompareoutputproportions

解决方案


推荐阅读