Sensitivity of Mcnemar test
<p>I want to see if there is more genes in affected group than in no affected group</p>

<p>I thought first that a Fisher exact test will be correct but since affected group and no affected group are related (paired) so it seems to me that a McNemar test is more correct?</p>

<p>When I try the test it returns to me a significant p value of 2.2-e16 even when the carrier of the gene are equal in both affected and no affected group which would say that there is enrichment  of this gene in one of this two groups?</p>

<p>Instead when I try fisher test I have a p value of 1 that make sense to me since the number of gene is equal in both affected and no affected. But since its a paired data I can not use this test.</p>

<pre><code>tt = with(data, table(Disease, Gene))
tt
                             Gene
       Disease        NoCarrier    Carrier
          NoAffected      2043       57
          Affected        2043       57
mcnemar.test(tt)

McNemar's Chi-squared test with continuity correction

   data:  tt
   McNemar's chi-squared = 1876.3, df = 1, p-value &lt; 2.2e-16
</code></pre>

<p>Thanks</p>