KlotzTest
javanpst.tests.scale.klotzTest

Class KlotzTest



  • public class KlotzTestextends StatisticalTest
    The Klotz 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 Klotz test uses the squares of the weights of the inverse-normal scores of van der Warden Normal Scores test for location. An approximation to the Normal distribution is employed to compute asymptotic p-values.
    • Constructor Detail

      • KlotzTest

        public KlotzTest()
        Default builder
      • KlotzTest

        public KlotzTest(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
      • getPValue1

        public double getPValue1()
        Get first sample p-value
        Returns:
        first sample p-value
      • getPValue2

        public double getPValue2()
        Get second sample p-value
        Returns:
        second sample p-value
      • printWeights

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

SCaVis 1.7 © jWork.org