Class ChiSquare
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short description of the Chi Square Test.Retrieves the parameters required by the Chi Square Test.getTest(DataModel dataSet, Parameters parameters) Retrieves an instance of the IndependenceTest interface that performs a Chi Square Test for independence.
-
Constructor Details
-
ChiSquare
public ChiSquare()Initializes a new instance of the ChiSquare class.
-
-
Method Details
-
getTest
Retrieves an instance of the IndependenceTest interface that performs a Chi Square Test for independence.- Specified by:
getTestin interfaceIndependenceWrapper- 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
Returns a short description of the Chi Square Test.- Specified by:
getDescriptionin interfaceIndependenceWrapper- Returns:
- A String representing the short description of the Chi Square Test.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceIndependenceWrapper- Returns:
- The data type required by the search.
-
getParameters
Retrieves the parameters required by the Chi Square Test.- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceIndependenceWrapper- Returns:
- A list of strings representing the parameters required by the Chi Square Test.
-