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.
- Author:
- Bryan Andrews
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestMvpLrt
(DataSet data, double alpha, int fDegree, boolean discretize) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence
(Node x, Node y, Set<Node> _z) Returns an independence result for x _||_ y | z.boolean
determines
(List<Node> z, Node y) double
getAlpha()
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 searchVariables.boolean
Returns true if verbose output is printed.void
setAlpha
(double alpha) Sets the significance level.void
setVerbose
(boolean verbose) Returns whether verbose output should be printed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getCov, getDataSets, getSampleSize, getVariable, getVariableNames, toString
-
Constructor Details
-
IndTestMvpLrt
Constructor.- 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
-
indTestSubset
Returns an independence test for a sublist of the searchVariables.- Specified by:
indTestSubset
in interfaceIndependenceTest
- Parameters:
vars
- The sublist of variables.- Returns:
- this test.
- See Also:
-
checkIndependence
Returns an independence result for x _||_ y | z.- Specified by:
checkIndependence
in interfaceIndependenceTest
- Returns:
- This result.
- See Also:
-
getVariables
Returns the list of searchVariables over which this independence checker is capable of determinining independence relations.- Specified by:
getVariables
in interfaceIndependenceTest
- Returns:
- This list.
-
determines
- Throws:
javax.help.UnsupportedOperationException
- Method not implemented.
-
getAlpha
public double getAlpha()Returns the significance level of the independence test.- Specified by:
getAlpha
in interfaceIndependenceTest
- Returns:
- This level.
- Throws:
UnsupportedOperationException
- if there is no significance level.
-
setAlpha
public void setAlpha(double alpha) Sets the significance level.- Specified by:
setAlpha
in interfaceIndependenceTest
- Parameters:
alpha
- This level.
-
getData
Returns the data.- Specified by:
getData
in interfaceIndependenceTest
- Returns:
- This data.
- See Also:
-
isVerbose
public boolean isVerbose()Returns true if verbose output is printed.- Specified by:
isVerbose
in interfaceIndependenceTest
- Returns:
- True, if so.
-
setVerbose
public void setVerbose(boolean verbose) Returns whether verbose output should be printed.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- True, if so.
-