FriedmanTest
javanpst.tests.multiple.friedmanTest

Class FriedmanTest



  • public class FriedmanTestextends StatisticalTest
    The Friedman's test. This test can be applied to reject as null hypothesis that the n medians of the treatments (columns) are equal when applied to k blocks (rows). Ties are broken by the midrank method (e.g. a tie in ranks 6 and 7 is assumed as a 6.5 rank for both values). Variance of the statistic is adjusted as a consequence of ties A multiple-comparisons procedure (Bonferroni-Dunn), applied at 0.10 and 0.05 levels of significance is also provided.
    • Constructor Detail

      • FriedmanTest

        public FriedmanTest()
        Default builder
      • FriedmanTest

        public FriedmanTest(DataTable newData)
        Builder. Load data to test.
        Parameters:
        newData - data to test.
    • Method Detail

      • setData

        public void setData(DataTable newData)
        Sets data to test
        Parameters:
        newData - data to test.
      • getS

        public double getS()
        Get S statistic
        Returns:
        S statistic
      • getQ

        public double getQ()
        Get Q statistic
        Returns:
        Q statistic
      • getPValue

        public double getPValue()
        Get p-value
        Returns:
        p-value computed
      • getAvgRanks

        public double getAvgRanks(int pop)
        Get average rank of the selected population
        Parameters:
        pop - population index (from 1 to k)
        Returns:
        average rank of the population
      • printMultipleComparisonsProcedureReport

        public String printMultipleComparisonsProcedureReport()
        Prints a report with the results of the multiple comparisons procedure
        Returns:
        Output report

SCaVis 1.7 © jWork.org