dxy logo
首页丁香园病例库全部版块
搜索
登录

关于R语言中的prop.test()函数!

最后编辑于 2022-10-09 · 来自 iOS · IP 浙江浙江
1.2 万 浏览
这个帖子发布于 8 年零 86 天前,其中的信息可能已发生改变或有所发展。
如图,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。可以这样的吧?

img

全部讨论(0)

默认最新
avatar
4
分享帖子
share-weibo分享到微博
share-weibo分享到微信
认证
返回顶部