title: Why is the chi-square I get for VCD's assocstats() function different from descr's crosstab() function?
body: <p>I am using the <code>descr</code> package so I can use <code>crosstab()</code> to make a table and return a chi square for two variables. However, I also need the phi coefficient, which VCD's <code>assocstats()</code> returns (I know it's a simple formula, but eh lazy). However, the chi-square for assocstats() is different than the chi-square for crosstab(), which will affect my phi coefficient value. Why is this happening (the difference is really small, but still)? </p>
  
  <p>If it is relevant, I doing a test on 2 variables, each with 4 categories (4x4 table)</p>