title: R-PropTest in Java
body: <p>I have a 2X2 Matrix and am doing prop_test in R and then take the P value from the result.</p>
  
  <p>Now, I want to do the same thing in Java i.e., computing the P value.</p>
  
  <p>One way is to use <a href="https://commons.apache.org/proper/commons-math/javadocs/api-3.1/org/apache/commons/math3/stat/inference/ChiSquareTest.html" rel="nofollow noreferrer">https://commons.apache.org/proper/commons-math/javadocs/api-3.1/org/apache/commons/math3/stat/inference/ChiSquareTest.html</a> and compute the P-value</p>
  
  <p>But, chi-square test does not use a Yates' continuity correction which can result in differences between R's approach and ChiSquareTest approach.</p>
  
  <p>I would like to know any other ways to get the P-Value using Yates' continuity correction</p>