遇到下列一个问题:
假定有100血清样本,每个样本都检测出五种病菌,假定是1,2,3,4,5,
现在要通过卡方检验来验证任何两种细菌之间是否存在相关性,应该用哪种卡方研究来验证呢?fisher test,还是Mcnemar test?
我是这样做的,在检验1,2两种细菌时,假定100个样本中同时含有1,2细菌的样本有71个(+,+),同时都不含有1,2的样本数是19个(-,-),含有1不含有2的样本数是10个(+,-),含有2不含有1的样本数为0个(-,+),于是可以得到一个四格表:
+ -
+ 71 10
- 0 19
直接用卡方检验,结果如下
Chi-Square Tests
Value
df
Asymp. Sig. (2-sided)
Exact Sig. (2-sided)
Exact Sig. (1-sided)
Pearson Chi-Square
57.429a
1
.000
Continuity Correctionb
53.250
1
.000
Likelihood Ratio
59.882
1
.000
Fisher's Exact Test
.000
.000
Linear-by-Linear Association
56.854
1
.000
N of Valid Casesb
100
a. 0 cells (.0%) have expected count less than 5. The minimum expected count is 5.51.
b. Computed only for a 2x2 table
用Mcnemar test 结果为:
Chi-Square Tests
Value
Exact Sig. (2-sided)
McNemar Test
.002a
N of Valid Cases
100
a. Binomial distribution used.
请问我这样做是否正确,上述哪种检验是对的?如果样本更多的话,应该用什么检验呢?请各位高手指导!