Package edu.cmu.tetrad.search.test
Class IndTestMulti
java.lang.Object
edu.cmu.tetrad.search.test.IndTestMulti
- All Implemented Interfaces:
IndependenceTest
A class that represents a pooled independence test for multiple data sets.
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestMulti
(List<IndependenceTest> independenceTests, ResolveSepsets.Method method) Constructs a new pooled independence test for the given data sets. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence
(Node x, Node y, Set<Node> z) Determines whether variable x is independent of variable y given a list of conditioning variables z.boolean
determines
(List<Node> z, Node x) Determines whether variable x is independent of variable y given a list of conditioning variables z.double
getAlpha()
Gets the getModel significance level.getData()
Retrieves the data set.Retrieves the list of variables associated with this object.indTestSubset
(List<Node> vars) Returns an Independence test for a sublist of the variables.boolean
Returns true if the test prints verbose output.void
setAlpha
(double alpha) Sets the significance level for the independence test.void
setVerbose
(boolean verbose) Sets whether verbose output should be printed during the test.toString()
Returns a string representation of this object, which includes the alpha value of the independence test.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getCov, getDataSets, getSampleSize, getVariable, getVariableNames
-
Constructor Details
-
IndTestMulti
Constructs a new pooled independence test for the given data sets.- Parameters:
independenceTests
- the independence tests to pool.method
- the method to use for pooling.- See Also:
-
-
Method Details
-
indTestSubset
Returns an Independence test for a sublist of the variables.- Specified by:
indTestSubset
in interfaceIndependenceTest
- Parameters:
vars
- The sublist of variables.- Returns:
- an
IndependenceTest
object
-
checkIndependence
public IndependenceResult checkIndependence(Node x, Node y, Set<Node> z) throws InterruptedException Determines whether variable x is independent of variable y given a list of conditioning variables z.- Specified by:
checkIndependence
in interfaceIndependenceTest
- Parameters:
x
- aNode
objecty
- aNode
objectz
- aSet
object- Returns:
- a
IndependenceResult
object - Throws:
InterruptedException
- See Also:
-
getAlpha
public double getAlpha()Gets the getModel significance level.- Specified by:
getAlpha
in interfaceIndependenceTest
- Returns:
- a double
-
setAlpha
public void setAlpha(double alpha) Sets the significance level for the independence test.- Specified by:
setAlpha
in interfaceIndependenceTest
- Parameters:
alpha
- The significance level to set.
-
getVariables
Retrieves the list of variables associated with this object.- Specified by:
getVariables
in interfaceIndependenceTest
- Returns:
- the list of variables associated with this object.
-
determines
Determines whether variable x is independent of variable y given a list of conditioning variables z.- Parameters:
z
- A list of conditioning variables.x
- The variable x.- Returns:
- True if variable x is independent of variable y given the conditioning variables z, false otherwise.
- Throws:
UnsupportedOperationException
- if the method is not implemented.
-
getData
Retrieves the data set.- Specified by:
getData
in interfaceIndependenceTest
- Returns:
- the data set.
- See Also:
-
toString
Returns a string representation of this object, which includes the alpha value of the independence test.- Specified by:
toString
in interfaceIndependenceTest
- Overrides:
toString
in classObject
- Returns:
- the string representation of this object
-
isVerbose
public boolean isVerbose()Returns true if the test prints verbose output.- Specified by:
isVerbose
in interfaceIndependenceTest
- Returns:
- True if the test prints verbose output, false otherwise.
-
setVerbose
public void setVerbose(boolean verbose) Sets whether verbose output should be printed during the test.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- True to enable verbose output, false otherwise.
-