Documentation of 'javanpst.tests.twoSample.medianTest.MedianTest' Java class
MedianTest
javanpst.tests.twoSample.medianTest

Class MedianTest



  • public class MedianTest
    extends StatisticalTest
    The median test This test can be applied to test the null hypotheses of equal medians between populations. Exact p-value is computed through U and V statistics (number of values below of the combined sample median). An asymptotic approximation to the normal distribution is also computed.
    • Constructor Detail

      • MedianTest

        public MedianTest()
        Default builder
      • MedianTest

        public MedianTest(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.
      • getU

        public double getU()
        Get U statistic
        Returns:
        U statistic
      • getV

        public double getV()
        Get V statistic
        Returns:
        V statistic
      • getMedian

        public double getMedian()
        Get median of the combined sample
        Returns:
        median value
      • getExactLeftPValue

        public double getExactLeftPValue()
        Get left tail exact p-value
        Returns:
        left tail p-value computed
      • getExactRightPValue

        public double getExactRightPValue()
        Get right tail exact p-value
        Returns:
        right tail p-value computed
      • getExactDoublePValue

        public double getExactDoublePValue()
        Get double tail exact p-value
        Returns:
        double tail p-value computed
      • 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
      • printConfidenceInterval

        public java.lang.String printConfidenceInterval()
        Prints a confidence interval for the median difference
        Returns:
        string with the confidence interval
      • 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.