全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
5053 3
2014-06-05
悬赏 100 个论坛币 已解决
关于计算binomial proportion test 的p值

请教各位大神:附件表格中红色方框里各数值后面星号所表示的p值具体是如何计算出来的?
binomial proportion test.jpg

原图尺寸 94.12 KB

binomial proportion test.jpg

最佳答案

dxystata 查看完整内容

以438 226为例 binom.test(x =438, n =664, p = 0.5, alternative = "two.sided") binom.test(x =226, n =664, p = 0.5, alternative = "two.sided")
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-6-5 10:52:52
以438 226为例
binom.test(x =438, n =664, p = 0.5, alternative = "two.sided")
binom.test(x =226, n =664, p = 0.5, alternative = "two.sided")
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-6-5 22:47:16
多谢版主啊!用二项分布近似方法和修正的正态近似方法做出的结果基本相符,看来原文中可能是Frebruary 1989一栏中56.46后面少标了一个星号。
> prop.test(236,418,correct=TRUE)

        1-sample proportions test with continuity correction

data:  236 out of 418, null probability 0.5
X-squared = 6.7201, df = 1, p-value = 0.009533
alternative hypothesis: true p is not equal to 0.5
95 percent confidence interval:
0.5154876 0.6124931
sample estimates:
        p
0.5645933

> binom.test(x=236,n=418,p=0.5,alternative="two.sided")

        Exact binomial test

data:  236 and 418
number of successes = 236, number of trials = 418, p-value = 0.009451
alternative hypothesis: true probability of success is not equal to 0.5
95 percent confidence interval:
0.5155503 0.6127155
sample estimates:
probability of success
             0.5645933

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-1-2 21:13:06
您好,我最近在学习r语言中,遇到了您问题中所用的两个函数,虽然看了帮助文档,但是对这两个函数的意义还是不理解,请问这两个函数都是用来做什么的,有什么区别呢?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群