Package edu.cmu.tetrad.search.test
Class IndTestMulti
java.lang.Object
edu.cmu.tetrad.search.test.IndTestMulti
- All Implemented Interfaces:
IndependenceTest
Pools together a set of independence tests using a specified method.
- Author:
- Robert Tillman
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestMulti(List<IndependenceTest> independenceTests, ResolveSepsets.Method method) -
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.booleandetermines(List<Node> z, Node x) doublegetAlpha()Gets the getModel significance level.getData()indTestSubset(List<Node> vars) Returns an Independence test for a sublist of the variables.booleanReturns true if the test prints verbose output.voidsetAlpha(double alpha) Sets the significance level.voidsetVerbose(boolean verbose) Sets whether this test will print verbose output.toString()Returns a string representation of this test.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getCov, getDataSets, getSampleSize, getVariable, getVariableNames
-
Constructor Details
-
IndTestMulti
-
-
Method Details
-
indTestSubset
Description copied from interface:IndependenceTestReturns an Independence test for a sublist of the variables.- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables.
-
checkIndependence
Determines whether variable x is independent of variable y given a list of conditioning variables z.- Specified by:
checkIndependencein interfaceIndependenceTest- Parameters:
x- the one variable being compared.y- the second variable being compared.z- the list of conditioning variables.- Returns:
- True iff x _||_ y | z.
- Throws:
RuntimeException- if a matrix singularity is encountered.- See Also:
-
getAlpha
public double getAlpha()Gets the getModel significance level.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- This level.
-
setAlpha
public void setAlpha(double alpha) Description copied from interface:IndependenceTestSets the significance level.- Specified by:
setAlphain interfaceIndependenceTest- Parameters:
alpha- This level.
-
getVariables
- Specified by:
getVariablesin interfaceIndependenceTest- Returns:
- the list of variables over which this independence checker is capable of determinine independence relations-- that is, all the variables in the given graph or the given data set.
-
determines
- Throws:
UnsupportedOperationException- Method not implemented.
-
getData
- Specified by:
getDatain interfaceIndependenceTest- Returns:
- The data model for the independence test, either a DataSet or a CovarianceMatrix.
- Throws:
javax.help.UnsupportedOperationException- Method not implemented.- See Also:
-
toString
Description copied from interface:IndependenceTestReturns a string representation of this test.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- a string representation of this test.
-
isVerbose
public boolean isVerbose()Returns true if the test prints verbose output.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- True if the case.
-
setVerbose
public void setVerbose(boolean verbose) Sets whether this test will print verbose output.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True, if so.
-