ContingencyCoefficient
javanpst.tests.countData.contingencyCoefficient

Class ContingencyCoefficient



  • public class ContingencyCoefficientextends StatisticalTest
    A contingency coefficient-based test. This procedure test that row and columns of a n x m contingency coefficient are independent or have no association. Q statistic (approximated to a chi-square distribution) and C and Phi coefficients are computed.
    • Constructor Detail

      • ContingencyCoefficient

        public ContingencyCoefficient()
        Default builder
      • ContingencyCoefficient

        public ContingencyCoefficient(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.
      • getQ

        public double getQ()
        Get Q statistic
        Returns:
        Q statistic
      • getC

        public double getC()
        Get C contingency coefficient
        Returns:
        C contingency coefficient
      • getPhi

        public double getPhi()
        Get phi contingency coefficient
        Returns:
        phi contingency coefficient
      • getPValue

        public double getPValue()
        Get p-value
        Returns:
        p-value computed

SCaVis 1.7 © jWork.org