David_BartonTest
javanpst.tests.scale.david_BartonTest

Class David_BartonTest



  • public class David_BartonTestextends StatisticalTest
    The David-Barton 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 David-Barton test ranks elements with the following weights: N/2 ... 3,2,1,1,2,3 ... N/2 for N even N-1/2 ... 3,2,1,0,1,2,3 ... N-1/2 for N odd An approximation to the Normal distribution is employed to compute p-values.
    • Constructor Detail

      • David_BartonTest

        public David_BartonTest()
        Default builder
      • David_BartonTest

        public David_BartonTest(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