Documentation of 'javanpst.tests.bivariate.danielTrendTest.DanielTrendTest' Java class
DanielTrendTest
javanpst.tests.bivariate.danielTrendTest

Class DanielTrendTest



  • public class DanielTrendTest
    extends StatisticalTest
    The Daniel Trend test. This test computes Spearman's correlation coefficient to measure association between bivariate samples. Two samples, with 3 o more values are needed. A exact p-value is computed if the size of the sample is equal or lower than 10. If the size is between 11 and 30, a quantile approximation is computed. Ties are broken arbitrarily. Furthermore, an asymptotic p-value, measuring positive, negative, and no dependence is computed for any sample size.
    • Constructor Detail

      • DanielTrendTest

        public DanielTrendTest()
        Default builder
      • DanielTrendTest

        public DanielTrendTest(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.
      • getR

        public double getR()
        Get R statistic (Spearman's correlation coefficient)
        Returns:
        R statistic
      • getZ

        public double getZ()
        Get Z statistic
        Returns:
        Z statistic
      • getExactPValue

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

        public double getPositiveDependencePvalue()
        Get positive dependence p-value
        Returns:
        positive dependence p-value
      • getNegativeDependencePvalue

        public double getNegativeDependencePvalue()
        Get negative dependence p-value
        Returns:
        negative dependence p-value
      • getNoDependencePvalue

        public double getNoDependencePvalue()
        Get no dependence p-value
        Returns:
        negative dependence 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.