java.lang.Object
edu.cmu.tetrad.algcomparison.independence.ChiSquare
All Implemented Interfaces:
IndependenceWrapper, HasParameters, TetradSerializable, Serializable

@TestOfIndependence(name="Chi Square Test", command="chi-square-test", dataType=Discrete) public class ChiSquare extends Object implements IndependenceWrapper
Wrapper for Fisher Z test.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • ChiSquare

      public ChiSquare()
      Initializes a new instance of the ChiSquare class.
  • Method Details

    • getTest

      public IndependenceTest getTest(DataModel dataSet, Parameters parameters)
      Retrieves an instance of the IndependenceTest interface that performs a Chi Square Test for independence.
      Specified by:
      getTest in interface IndependenceWrapper
      Parameters:
      dataSet - The data set to test independence against.
      parameters - The parameters of the test.
      Returns:
      An instance of the IndependenceTest interface that performs a Chi Square Test for independence.
    • getDescription

      public String getDescription()
      Returns a short description of the Chi Square Test.
      Specified by:
      getDescription in interface IndependenceWrapper
      Returns:
      A String representing the short description of the Chi Square Test.
    • getDataType

      public DataType getDataType()
      Returns the data type that the search requires, whether continuous, discrete, or mixed.
      Specified by:
      getDataType in interface IndependenceWrapper
      Returns:
      The data type required by the search.
    • getParameters

      public List<String> getParameters()
      Retrieves the parameters required by the Chi Square Test.
      Specified by:
      getParameters in interface HasParameters
      Specified by:
      getParameters in interface IndependenceWrapper
      Returns:
      A list of strings representing the parameters required by the Chi Square Test.