title: Comparison of to two repartitions and repeated measure on an uneven population: limits of a McNemar
body: <p>I am working in linguistics on the transformation of one sound in specific contexts: for example, the number of [s] produced [s] or transformed in nouns, and pronouns (I am copying you a part of my code below).</p>
  <p>For now, I am using a McNemar test, but I am worried about the limits of this test because the 459 occurrences of  [s] in a noun and the 53 in pronouns have been produced unevenly by 16 children only... What bias does it create? Would there be a better test or an adaptation to this one to take into account the number of a child?
  Thank you for your time and answer
  Sincerely
  Sarah</p>
  <pre><code>tableaus = matrix(c(292,167,31,22),byrow = TRUE,ncol=2)
  tableaus
  ###nommer les colonnes et les lignes
  rownames(tableaus)=c(&quot;lexemes&quot;,&quot;pronouns&quot;) 
  colnames(tableaus)=c(&quot;Accurate&quot;,&quot;+/- transformed&quot;)
  tableaus
  ##Chi2
  mcnemar.test(tableaus, correct = FALSE)
  </code></pre>