楼主: jet757
15027 5

[问答] 已知两组率和 95%可信区间,如何进行统计学检验? [推广有奖]

  • 0关注
  • 1粉丝

硕士生

30%

还不是VIP/贵宾

-

威望
0
论坛币
2029 个
通用积分
4.1004
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
255 点
帖子
54
精华
0
在线时间
254 小时
注册时间
2014-5-6
最后登录
2024-3-1

50论坛币
已知两组率和 95%可信区间,如何进行统计学检验?

如: 0.77(0.71-0.82)  vs 0.86(0.82-0.90)
  

最佳答案

jingju11 查看完整内容

The key here is what kind of confidence interval for the binomial proportions is given. Say the standard Wald asymptotic confidence limits. Remember that: regardless what kind of info you have, the proportion is always defined as two parameters: n1=#of events, and N=#of all observations. The code for testing the risk difference is similar to the following program: JingJu
关键词:可信区间 统计学 如何 统计学
沙发
jingju11 发表于 2015-11-16 22:17:06 |只看作者 |坛友微信交流群
The key here is what kind of confidence interval for the binomial proportions is given. Say the standard Wald asymptotic confidence limits. Remember that: regardless what kind of info you have, the proportion is always defined as two parameters: n1=#of events, and N=#of all observations.
The code for testing the risk difference is similar to the following program:
JingJu

  1. data x;
  2. z =quantile('normal', 1-0.05/2);
  3. grp=1;
  4. p=0.77;
  5. se =(0.82-0.71)/2/z;
  6. n=round(p*(1-P)/se**2);
  7. n1=round(n *p);
  8. y=1; output;
  9. y=0; n1=n-n1; output;
  10. grp =2;
  11. p=0.86;
  12. se =(0.90-0.82)/2/z;
  13. n=round(p*(1-P)/se**2);
  14. n1=round(n *p);
  15. y=1; output;
  16. y=0; n1=n-n1; output;
  17. run;

  18. proc freq data=x;
  19. tables grp *y/riskdiff(equal method=wald );
  20. weight n1;
  21. run;
复制代码


已有 1 人评分论坛币 收起 理由
admin_kefu + 20 热心帮助其他会员

总评分: 论坛币 + 20   查看全部评分

使用道具

藤椅
teqel 发表于 2015-11-17 00:51:32 |只看作者 |坛友微信交流群
proc Power?

使用道具

板凳
ljh_9802 发表于 2015-11-17 19:42:48 |只看作者 |坛友微信交流群
此问题实质是2x2表率的比较,至少有五种检验方法:

1 率的差异
     假设两组率分别为P1和p2,两组率真实差异的Wald置信区间为(p1−p2) ± zα/2(SE),SE=SQR[p1(1−p1)/n1+p2(1-p2)/n2]。若95%置信区间包含0,则差异无统计学意义。

2 相对风险
     样本相对风险p1/p2的抽样分布极其偏态,除非样本量很大。因此,其置信区间的公式比较复杂。2楼jingju11给出了SAS–PROC FREQ程序代码。真实相对风险的95%CI包含1,则两率差异无统计学意义。

3 比数比
    也称交叉乘积比,样本OR=[p1/(1-p1)]/[p2/(1-p2)]。同样,SAS–PROC FREQ可输出真实比数比的置信区间,若95%CI包含1,则两率差异无统计学意义。

4 两变量独立性的卡方检验
    以二分类分组变量为行变量,率结局变量为列变量,进行两变量独立性的卡方检验。SAS–PROC FREQ可输出相应检验统计量和P值,据此判断检验结果。

5 简单二分类Logistic模型拟合
    以率为二分类Y变量,分组变量为二分类X变量,拟合简单二分类Logistic模型。SAS–PROC LOGISTIC可输出相应检验统计量、P值、OR值及其95%CI,据此得出相关结论。

已有 1 人评分论坛币 收起 理由
admin_kefu + 20 热心帮助其他会员

总评分: 论坛币 + 20   查看全部评分

使用道具

报纸
jet757 发表于 2015-11-19 07:25:28 |只看作者 |坛友微信交流群
谢谢两位老师!

使用道具

地板
jingju11 发表于 2015-11-21 09:43:42 |只看作者 |坛友微信交流群
我给的是1 率的差异。京剧

使用道具

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

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

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

GMT+8, 2024-4-25 00:13