楼主: chris1998
4792 3

[实际应用] 计算binomial proportion test 的p值 [推广有奖]

  • 5关注
  • 7粉丝

讲师

44%

还不是VIP/贵宾

-

威望
0
论坛币
120981 个
通用积分
13.1183
学术水平
44 点
热心指数
54 点
信用等级
43 点
经验
2616 点
帖子
525
精华
0
在线时间
454 小时
注册时间
2011-5-29
最后登录
2023-4-23

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")
关键词:Proportion Binomial nomial Port test 如何
沙发
dxystata 发表于 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")

使用道具

藤椅
chris1998 发表于 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语言中,遇到了您问题中所用的两个函数,虽然看了帮助文档,但是对这两个函数的意义还是不理解,请问这两个函数都是用来做什么的,有什么区别呢?

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-21 09:47