Package edu.cmu.tetrad.search.test
Class IndTestMvpLrt
java.lang.Object
edu.cmu.tetrad.search.test.IndTestMvpLrt
- All Implemented Interfaces:
- IndependenceTest
Performs a test of conditional independence X _||_ Y | Z1...Zn where all variables are either continuous or discrete.
 This test is valid for both ordinal and non-ordinal discrete searchVariables.
 
Andrews, B., Ramsey, J., & Cooper, G. F. (2018). Scoring Bayesian networks of mixed variables. International journal of data science and analytics, 6, 3-18.
- Version:
- $Id: $Id
- Author:
- Bryan Andrews
- 
Constructor SummaryConstructorsConstructorDescriptionIndTestMvpLrt(DataSet data, double alpha, int fDegree, boolean discretize) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> _z) Determines whether two nodes are independent given a set of conditioning nodes.booleandetermines(List<Node> z, Node y) Determines whether two nodes are independent given a set of conditioning nodes.doublegetAlpha()Returns the significance level of the independence test.getData()Returns the data.Returns the list of searchVariables over which this independence checker is capable of determinining independence relations.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 of the independence test.voidsetVerbose(boolean verbose) Sets whether this test will print verbose output.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence, determines, getCov, getDataSets, getSampleSize, getVariable, getVariableNames, toString
- 
Constructor Details- 
IndTestMvpLrtConstructor.- Parameters:
- data- The mixed continuous/discrete dataset.
- alpha- The significance level.
- fDegree- The f degree.
- discretize- True if continuous children should be discretized.
 
 
- 
- 
Method Details- 
indTestSubsetReturns an Independence test for a sublist of the variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Returns:
- The IndependenceTest object for the sublist of variables.
 
- 
checkIndependenceDetermines whether two nodes are independent given a set of conditioning nodes.- Specified by:
- checkIndependencein interface- IndependenceTest
- Parameters:
- x- The first node.
- y- The second node.
- _z- The set of conditioning nodes.
- Returns:
- The result of the independence test.
- Throws:
- RuntimeException- if an undefined p-value is encountered.
- See Also:
 
- 
getVariablesReturns the list of searchVariables over which this independence checker is capable of determinining independence relations.- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- This list.
 
- 
determinesDetermines whether two nodes are independent given a set of conditioning nodes.- Parameters:
- z- The set of conditioning nodes.
- y- The second node.
- Returns:
- true if the two nodes are independent, false otherwise.
- Throws:
- UnsupportedOperationException- if the method is not implemented.
 
- 
getAlphapublic double getAlpha()Returns the significance level of the independence test.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- This level.
- Throws:
- UnsupportedOperationException- if there is no significance level.
 
- 
setAlphapublic void setAlpha(double alpha) Sets the significance level of the independence test.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- This level.
 
- 
getDataReturns the data.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- This data.
- See Also:
 
- 
isVerbosepublic boolean isVerbose()Returns whether verbose output should be printed.- Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- true if verbose output should be printed, false otherwise
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets whether this test will print verbose output.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- true if verbose output should be printed, false otherwise.
 
 
-