设为首页收藏本站

EPS数据狗论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1594|回复: 0

STATA,SAS,SPSS实现分层定群研究(cmh)

[复制链接]

6

主题

62

金钱

101

积分

入门用户

发表于 2019-9-23 13:58:55 | 显示全部楼层 |阅读模式

STATA程序: bd:breslow-day test一致性卡方检验,仅在cc命令中使用
1.png
2.png


SAS程序:
  1. data demo;
  2. do layer= 1 to 2;
  3. do case= 1 to 2;
  4. do expose=1 to 2;
  5. input n@@;
  6. output;
  7. end;
  8. end;
  9. end;
  10. cards;
  11. 8 5  98 115 22 16 76 79
  12. ;
  13. proc freq;
  14. weight n;
  15. tables layer*expose*case/cmh nopct norow nocol;
  16. run;
复制代码


程序结果
                      Cochran-Mantel-Haenszel Statistics (Based on Table Scores)
                   Statistic    Alternative Hypothesis    DF       Value      Prob
                  
                       1        Nonzero Correlation        1      1.9779    0.1596
                       2        Row Mean Scores Differ     1      1.9779   0.1596
                       3        General Association        1      1.9779    0.1596
                          Estimates of the Common Relative Risk (Row1/Row2)
              Type of Study     Method                  Value     95% Confidence Limits
           
              Case-Control      Mantel-Haenszel        1.5440      0.8411      2.8345
                (Odds Ratio)    Logit                  1.5427       0.8397       2.8344
              Cohort            Mantel-Haenszel        1.2236       0.9439       1.5864
                (Col1 Risk)     Logit                  1.2296       0.9492       1.5928
              Cohort            Mantel-Haenszel        0.7922       0.5581       1.1244
                (Col2 Risk)     Logit                  0.7961       0.5613       1.1290
                                         Breslow-Day Test for
                                    Homogeneity of the Odds Ratios
                                   
                                    Chi-Square              0.1561
                                    DF                           1
                                    Pr > ChiSq              0.6928
                                       Total Sample Size = 419


SPSS过程:
3.png
4.jpg
5.png
6.png
7.png
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

客服中心
关闭
在线时间:
周一~周五
8:30-17:30
QQ群:
653541906
联系电话:
010-85786021-8017
在线咨询
客服中心

意见反馈|网站地图|手机版|小黑屋|EPS数据狗论坛 ( 京ICP备09019565号-3 )   

Powered by BFIT! X3.4

© 2008-2028 BFIT Inc.

快速回复 返回顶部 返回列表