Freund_Ansari_BradleyTest
javanpst.tests.scale.freund_Ansari_BradleyTest

Class Freund_Ansari_BradleyTest



  • public class Freund_Ansari_BradleyTestextends StatisticalTest
    The Freund-Ansari-Bradley test. Assuming the scale model (equal medians), this test can be employed to test whether the two distributions selected have equal scale parameter (with the null hypothesis of equality). The Freund-Ansari-Bradley test ranks elements with the following weights: 1,2,3 ... N/2 ... 3,2,1 for N even 1,2,3 ... (N+1/2) ... 3,2,1 for N odd An approximation to the Normal distribution is employed to compute p-values.
    • Constructor Detail

      • Freund_Ansari_BradleyTest

        public Freund_Ansari_BradleyTest()
        Default builder
      • Freund_Ansari_BradleyTest

        public Freund_Ansari_BradleyTest(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.
      • getTestStatistic1

        public double getTestStatistic1()
        Get test statistic associated to the first sample
        Returns:
        normal Statistic of the first sample
      • getTestStatistic2

        public double getTestStatistic2()
        Get test statistic associated to the second sample
        Returns:
        normal Statistic of the second sample
      • getLeftPValue

        public double getLeftPValue()
        Get left tail p-value
        Returns:
        left tail p-value computed
      • getRightPValue

        public double getRightPValue()
        Get right tail p-value
        Returns:
        right tail p-value computed
      • getDoublePValue

        public double getDoublePValue()
        Get double tail p-value
        Returns:
        double tail p-value computed
      • printWeights

        public String printWeights()
        Prints the array of weights
        Returns:
        string with the contents of the array

SCaVis 1.7 © jWork.org