CMH检验

CMH检验CMH 检验 Cochran Mantel HaenszelTest 分层卡方检验 考虑中心效应 分析干预对结果的影响

大家好,欢迎来到IT知识分享网。

前言

CMH检验(Cochran-Mantel-Haenszel Test),分层卡方检验,考虑中心效应,分析干预对结果的影响。如果存在中心效应,即干预结果与中心相关,那么简单的将中心数据合并做卡方分析并不合理。需要采用Breslow-test检验或Woolf -test检验中心效应的一致性,采用CMH检验来分析考虑了中心因素的影响后干预和结局的相关性(排除了影响因素后卡方检验的显著性)。分层因素还包括年龄、性别等其他混杂因素。


一、CMH检验

二、CMH检验统计量的分类

(1) 相关统计量(非零相关)
X、Y均为有序变量,自由度为1。
(2) 方差分析统计量(行平均得分统计量)
Y为有序变量,自由度为R-1。
H0:所有层的各行Y变量平均得分均相等
H1:至少有一层各行Y变量平均得分均不相等
一维RC列联表=各行Y变量平均得分的方差分析
秩和检验:Kruskal-Wallis检验。
(3)一般关联统计量
X、Y均为无序分类资料,目的是检验是否有关联性。
分层变量校正的Pearson χ2统计量。自由度(R-1)



(C-1)。





SAS中的三种CMH统计量如下:

非零相关(nonzero correlation statistic):行变量(原因变量)与列变量(结果变量)均有序。
行评分均值差异(row mean scores (ANOVA) statistic):行变量无序,列变量有序
一般关联(general association statistic):行变量与列变量均无序。
当结果变量为二分类时,3种统计量的数值结果一致。
在这里插入图片描述



CMH χ2统计量计算方法(以四格表为例)

CMH χ2应用方法注意事项

在这里插入图片描述

proc freq CMH

The CMH option in the TABLES statement gives a stratified statistical analysis of the relationship between the row and column variables after controlling for the strata variables in a multiway table. For example, for the table request ABC*D, the CMH option provides an analysis of the relationship between C and D, after controlling for A and B. The stratified analysis provides a way to adjust for the possible confounding effects of A and B without being forced to estimate parameters for them.

The CMH analysis produces Cochran-Mantel-Haenszel statistics, which include the correlation statistic, the ANOVA (row mean scores) statistic, and the general association statistic. For 2*2 tables, the CMH option also provides Mantel-Haenszel and logit estimates of the common odds ratio and the common relative risks, in addition to the Breslow-Day test for homogeneity of the odds ratios.

在这里插入图片描述
exact:Zelen’s相等比值比的精确检验

Exact statistics are also available for stratified 2*2 tables. If you specify the EQOR option in the EXACT statement, PROC FREQ provides Zelen’s exact test for equal odds ratios. If you specify the COMOR option in the EXACT statement, PROC FREQ provides exact confidence limits for the common odds ratio and an exact test that the common odds ratio equals one.


示例

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

 data test; input site group effect count; cards; 1 1 1 15 1 1 2 15 1 2 1 19 1 2 2 11 2 1 1 21 2 1 2 9 2 2 1 17 2 2 2 12 3 1 1 8 3 1 2 2 3 2 1 7 3 2 2 3 4 1 1 16 4 1 2 2 4 2 1 17 4 2 2 1 ; run; proc print data=test;run; proc freq data=test; weight count; tables site * group * effect / cmh ; run; 

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/132930.html

(0)
上一篇 2025-07-27 18:33
下一篇 2025-07-27 18:45

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注微信