@Test public void testTest() { logger.info("test"); TransposeDataList transposeDataList = new TransposeDataList(); transposeDataList.put(0, new FlatDataList(Arrays.asList(new Object[]{39.8,38.8,38.4,39.9,39.4,38.4,38.6,41.2,39.0,39.1}))); transposeDataList.put(1, new FlatDataList(Arrays.asList(new Object[]{38.8,38.6,37.5,38.0,38.7,38.4,38.7,38.6,38.3,38.6}))); boolean is_twoTailed = false; double aLevel = 0.05; boolean expResult = true; boolean result = WilcoxonRelatedSamples.test(transposeDataList, is_twoTailed, aLevel); assertEquals(expResult, result); }
public static boolean test(TransposeDataList transposeDataList, boolean is_twoTailed, double aLevel) { if(transposeDataList.size()!=2) { throw new IllegalArgumentException("The collection must contain observations from 2 groups."); } double pvalue= getPvalue(transposeDataList); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }
WilcoxonRelatedSamples { public static boolean test(TransposeDataList transposeDataList, boolean is_twoTailed, double aLevel) { if(transposeDataList.size()!=2) { throw new IllegalArgumentException("The collection must contain observations from 2 groups."); } double pvalue= getPvalue(transposeDataList); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; } }
WilcoxonRelatedSamples { public static boolean test(TransposeDataList transposeDataList, boolean is_twoTailed, double aLevel) { if(transposeDataList.size()!=2) { throw new IllegalArgumentException("The collection must contain observations from 2 groups."); } double pvalue= getPvalue(transposeDataList); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }  }
WilcoxonRelatedSamples { public static boolean test(TransposeDataList transposeDataList, boolean is_twoTailed, double aLevel) { if(transposeDataList.size()!=2) { throw new IllegalArgumentException("The collection must contain observations from 2 groups."); } double pvalue= getPvalue(transposeDataList); 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(TransposeDataList transposeDataList); static boolean test(TransposeDataList transposeDataList, boolean is_twoTailed, double aLevel); }
WilcoxonRelatedSamples { public static boolean test(TransposeDataList transposeDataList, boolean is_twoTailed, double aLevel) { if(transposeDataList.size()!=2) { throw new IllegalArgumentException("The collection must contain observations from 2 groups."); } double pvalue= getPvalue(transposeDataList); 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(TransposeDataList transposeDataList); static boolean test(TransposeDataList transposeDataList, boolean is_twoTailed, double aLevel);  }