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 SummaryConstructorsConstructorDescriptionIndTestMulti(List<IndependenceTest> independenceTests, ResolveSepsets.Method method) Constructs a new pooled independence test for the given data sets.
- 
Method SummaryModifier 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) Determines whether variable x is independent of variable y given a list of conditioning variables z.doublegetAlpha()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.booleanReturns true if the test prints verbose output.voidsetAlpha(double alpha) Sets the significance level for the independence test.voidsetVerbose(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.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence, determines, getCov, getDataSets, getSampleSize, getVariable, getVariableNames
- 
Constructor Details- 
IndTestMultiConstructs 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- 
indTestSubsetReturns an Independence test for a sublist of the variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Returns:
- an IndependenceTestobject
 
- 
checkIndependencepublic 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:
- checkIndependencein interface- IndependenceTest
- Parameters:
- x- a- Nodeobject
- y- a- Nodeobject
- z- a- Setobject
- Returns:
- a IndependenceResultobject
- Throws:
- InterruptedException- If the process is interrupted during the execution.
 
- 
getAlphapublic double getAlpha()Gets the getModel significance level.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- a double
 
- 
setAlphapublic void setAlpha(double alpha) Sets the significance level for the independence test.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- The significance level to set.
 
- 
getVariablesRetrieves the list of variables associated with this object.- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- the list of variables associated with this object.
 
- 
determinesDetermines 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.
 
- 
getDataRetrieves the data set.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- the data set.
 
- 
toStringReturns a string representation of this object, which includes the alpha value of the independence test.- Specified by:
- toStringin interface- IndependenceTest
- Overrides:
- toStringin class- Object
- Returns:
- the string representation of this object
 
- 
isVerbosepublic boolean isVerbose()Returns true if the test prints verbose output.- Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- True if the test prints verbose output, false otherwise.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets whether verbose output should be printed during the test.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True to enable verbose output, false otherwise.
 
 
-