Class IndTestSepsetDci
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestSepsetDci
- All Implemented Interfaces:
IndependenceTest
Checks independence facts for variables associated with a sepset by simply querying the sepset
- Author:
- Robert Tillman
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestSepsetDci
(SepsetMapDci sepset, List<Node> nodes) Constructs a new independence test that returns d-separation facts for the given graph as independence results. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence
(Node x, Node y, Set<Node> z) Checks the indicated independence fact.boolean
determines
(List<Node> z, Node x1) double
getAlpha()
Returns the significance level of the independence test.getData()
double
Needed for IndependenceTest interface.getVariable
(Node node) getVariable
(String name) Returns The variable by the given name.indTestSubset
(List<Node> vars) Required by IndependenceTest.boolean
Returns true if the test prints verbose output.void
setAlpha
(double alpha) Sets the significance level.void
setVerbose
(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, wait
Methods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getCov, getDataSets, getSampleSize, getVariableNames
-
Constructor Details
-
IndTestSepsetDci
Constructs a new independence test that returns d-separation facts for the given graph as independence results.
-
-
Method Details
-
indTestSubset
Required by IndependenceTest.- Specified by:
indTestSubset
in interfaceIndependenceTest
- Parameters:
vars
- The sublist of variables.
-
checkIndependence
Checks the indicated independence fact.- Specified by:
checkIndependence
in interfaceIndependenceTest
- Parameters:
x
- one node.y
- a second node.z
- a List of nodes (conditioning variables)- Returns:
- True iff x _||_ y | z
- See Also:
-
getPValue
public double getPValue()Needed for IndependenceTest interface. P value is not meaningful here. -
getVariables
- Specified by:
getVariables
in interfaceIndependenceTest
- Returns:
- the list of TetradNodes 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
-
getAlpha
public double getAlpha()Description copied from interface:IndependenceTest
Returns the significance level of the independence test.- Specified by:
getAlpha
in interfaceIndependenceTest
- Returns:
- This level.
-
setAlpha
public void setAlpha(double alpha) Description copied from interface:IndependenceTest
Sets the significance level.- Specified by:
setAlpha
in interfaceIndependenceTest
- Parameters:
alpha
- This level.
-
getVariable
Description copied from interface:IndependenceTest
Returns The variable by the given name.- Specified by:
getVariable
in interfaceIndependenceTest
- Returns:
- This variable.
-
getVariable
- Returns:
- the variable associated with the given node in the graph.
-
getNode
- Returns:
- the node associated with the given variable in the graph.
-
toString
Description copied from interface:IndependenceTest
Returns a string representation of this test.- Specified by:
toString
in interfaceIndependenceTest
- Overrides:
toString
in classObject
- Returns:
- This string.
-
getData
- Specified by:
getData
in interfaceIndependenceTest
- Returns:
- The data model for the independence test, either a DataSet or a CovarianceMatrix.
- See Also:
-
isVerbose
public boolean isVerbose()Description copied from interface:IndependenceTest
Returns true if the test prints verbose output.- Specified by:
isVerbose
in interfaceIndependenceTest
- Returns:
- True if the case.
-
setVerbose
public void setVerbose(boolean verbose) Description copied from interface:IndependenceTest
Sets whether this test will print verbose output.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- True, if so.
-