McNemarTest
javanpst.tests.countData.mcNemarTest

Class McNemarTest



  • public class McNemarTestextends StatisticalTest
    The McNemar test. This test can be applied to determine whether the row and column marginal frequencies of a 2 x 2 contingency table are equal. Three approximations are provided: - Exact p-value (through a binomial distribution) - Asymptotic p-value (through a normal distribution) - Asymptotic p-value (through a chi-square distribution)
    • Constructor Detail

      • McNemarTest

        public McNemarTest()
        Default builder
      • McNemarTest

        public McNemarTest(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.
      • getT

        public double getT()
        Get T statistic
        Returns:
        T statistic
      • getZ

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

        public double getS()
        Get S statistic
        Returns:
        S statistic
      • getExactPValue

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

        public double getAsymptoticNormalPValue()
        Get asymptotic p-value (Normal approximation)
        Returns:
        asymptotic p-value
      • getAsymptoticChiPValue

        public double getAsymptoticChiPValue()
        Get asymptotic p-value (Chi-square approximation)
        Returns:
        asymptotic p-value

SCaVis 1.7 © jWork.org