@Test public void testTest() { logger.info("test"); TransposeDataCollection transposeDataCollection = new TransposeDataCollection(); transposeDataCollection.put(0, new FlatDataCollection(Arrays.asList(new Object[]{23,"16+","18+","20+","24+"}))); transposeDataCollection.put(1, new FlatDataCollection(Arrays.asList(new Object[]{15,18,19,19,20.0}))); boolean is_twoTailed = true; double aLevel = 0.05; boolean expResult = true; boolean result = CoxMantel.test(transposeDataCollection, is_twoTailed, aLevel); assertEquals(expResult, result); }
public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue = getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }
CoxMantel { public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue = getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; } }
CoxMantel { public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue = getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }  }
CoxMantel { public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue = getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }  static double getPvalue(TransposeDataCollection transposeDataCollection); static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel); }
CoxMantel { public static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel) { double pvalue = getPvalue(transposeDataCollection); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }  static double getPvalue(TransposeDataCollection transposeDataCollection); static boolean test(TransposeDataCollection transposeDataCollection, boolean is_twoTailed, double aLevel);  }