McNemarDistribution
javanpst.distributions.tests

Class McNemarDistribution



  • public class McNemarDistributionextends Object
    An implementation of the McNemar's test distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

        public static McNemarDistribution getInstance()
        Singleton pattern access to the distribution
        Returns:
        the instance of the distribution
      • computeBinomialAdjustment

        public double computeBinomialAdjustment(double S,                               double x)
        Compute adjustment to binomial distribution
        Parameters:
        S - test statistic
        Returns:
        p-value computed
      • computeNormalAdjustment

        public double computeNormalAdjustment(double Z)
        Compute adjustment to normal distribution
        Parameters:
        Z - test statistic
        Returns:
        p-value computed
      • computeChiAdjustment

        public double computeChiAdjustment(double T)
        Compute adjustment to chi-square distribution
        Parameters:
        T - test statistic
        Returns:
        p-value computed

SCaVis 2.2 © jWork.ORG