Documentation of 'javanpst.tests.equality.CDTest.CDTest' Java class
CDTest
javanpst.tests.equality.CDTest

Class CDTest



  • public class CDTest
    extends StatisticalTest
    The Charkraborti and Desu test (CD test) This test can be applied to test whether the median of several populations are equal or greater than the median of a control. The null hypotheses states equal medians, whereas alternative means that at least one median is greater than the control one. P-values are computed through the exact distribution of the test. A normal distribution approximation, with continuity correction, is also provided. All samples must have the same number of elements.
    • Constructor Detail

      • CDTest

        public CDTest()
        Default builder
      • CDTest

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

      • clearData

        public void clearData()
        Clears the data stored in the test
        Specified by:
        clearData in class StatisticalTest
      • setData

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

        public double getW()
        Get W statistic
        Returns:
        W statistic
      • getZ

        public double getZ()
        Get control median value
        Returns:
        median value
      • getExactPValue

        public double getExactPValue()
        Get exact p-value
        Returns:
        exact p-value
      • getAsymptoticPValue

        public double getAsymptoticPValue()
        Get asymptotic p-value
        Returns:
        asymptotic p-value
      • printData

        public java.lang.String printData()
        Prints the data stored in the test
        Specified by:
        printData in class StatisticalTest
        Returns:
        Data stored
      • printReport

        public java.lang.String printReport()
        Prints a report with the results of the test
        Specified by:
        printReport in class StatisticalTest
        Returns:
        Output report

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.