Class IndTestMnlrLr
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestMnlrLr
- All Implemented Interfaces:
- IndependenceTest
Performs a test of conditional independence X _||_ Y | Z1...Zn where all searchVariables are either continuous or
 discrete. This test is valid for both ordinal and non-ordinal discrete searchVariables.
- Author:
- bryanandrews
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> _z) booleandetermines(List<Node> z, Node y) doublegetAlpha()Returns the significance level of the independence test.getData()Returns the data.indTestSubset(List<Node> vars) Returns an Independence test for a sublist of the variables.booleanReturns whether verbose output should be printed.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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence, determines, getCov, getDataSets, getSampleSize, getVariable, getVariableNames
- 
Constructor Details- 
IndTestMnlrLr
 
- 
- 
Method Details- 
indTestSubsetDescription copied from interface:IndependenceTestReturns an Independence test for a sublist of the variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Returns:
- an Independence test for a subset of the searchVariables.
 
- 
checkIndependence- Specified by:
- checkIndependencein interface- IndependenceTest
- Returns:
- True if the given independence question is judged true, false if not. The independence question is of the form x _||_ y | z, z = [z1,...,zn], where x, y, z1,...,zn are searchVariables in the list returned by getVariableNames().
- See Also:
 
- 
getVariables- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- the list of searchVariables over which this independence checker is capable of determinining independence relations.
 
- 
determines- Returns:
- true if y is determined the variable in z.
 
- 
getAlphapublic double getAlpha()Description copied from interface:IndependenceTestReturns the significance level of the independence test.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- the significance level of the independence test.
- Throws:
- UnsupportedOperationException- if there is no significance level.
 
- 
setAlphapublic void setAlpha(double alpha) Sets the significance level.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- This level.
 
- 
getDataReturns the data.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- This.
- See Also:
 
- 
isVerbosepublic boolean isVerbose()Returns whether verbose output should be printed.- Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- True is so.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets whether this test will print verbose output.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True, if so.
 
- 
toStringDescription copied from interface:IndependenceTestReturns a string representation of this test.- Specified by:
- toStringin interface- IndependenceTest
- Overrides:
- toStringin class- Object
- Returns:
- This string.
 
 
-