title: Compare mean of a variable between two group in RStudio
body: <p>This may be the wrong place to ask this question. If so, I apologize.</p>
  <p>I have a variable named qualitymean which is the mean of a bunch of likert answer variables:</p>
  <pre><code>    qualitymean &lt;- rowMeans(subset(please, select = c(PSTFDQ, PHTUDQ, PFOCDQ, PSWIDQ, PHCSDQ, PETRDQ, PEPADQ, PWPTDQ, PHDTDQ, PCAFDQ, PRAPDQ, PTAEDQ, POSRDQ, POTDDQ, POHTDQ, PONADQ)), na.rm = TRUE)
  </code></pre>
  <p>I am trying to look at the differences in mean responses by group (IPV_YES and IPV_NO).</p>
  <p>I have tried using t.test as followed:</p>
  <pre><code>    t.test(qualitymean, IPV_YES,
     conf.level = 0.95)
      t.test(qualitymean, IPV_NO,
     conf.level = 0.95)
  </code></pre>
  <p>but the means are the same in both groups. Have I done something wrong?</p>