code: public static double getPvalue(int n11, int n12, int n21, int n22) {
          double Chisquare=Math.pow(Math.abs(n12-n21) - 0.5,2)/(n12+n21); //McNemar with Yates's correction for continuity
  
          double pvalue= scoreToPvalue(Chisquare);
  
          return pvalue;
      }
docs: Calculates the p-value of null Hypothesis
  
  @param n11
  @param n12
  @param n21
  @param n22
  @return