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
- Version:
- $Id: $Id
- 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) checkIndependence.boolean
determines
(List<Node> z, Node x1) double
getAlpha()
getAlpha.getData()
getData.getNode.double
Needed for IndependenceTest interface.getVariable
(Node node) getVariable.getVariable
(String name) Returns The variable by the given name.getVariables.indTestSubset
(List<Node> vars) Returns an Independence test for a sublist of the variables.boolean
isVerbose.void
setAlpha
(double alpha) Sets the significance level.void
setVerbose
(boolean verbose) Sets whether this test will print verbose output.toString()
toString.Methods inherited from class java.lang.Object
equals, 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.- Parameters:
sepset
- aSepsetMapDci
objectnodes
- aList
object
-
-
Method Details
-
indTestSubset
Returns an Independence test for a sublist of the variables.Required by IndependenceTest.
- Specified by:
indTestSubset
in interfaceIndependenceTest
- Parameters:
vars
- The sublist of variables.- Returns:
- a
IndependenceTest
object
-
checkIndependence
checkIndependence.
Checks the indicated independence fact.
- Specified by:
checkIndependence
in interfaceIndependenceTest
- Parameters:
x
- aNode
objecty
- aNode
objectz
- aSet
object- Returns:
- a
IndependenceResult
object - See Also:
-
getPValue
public double getPValue()Needed for IndependenceTest interface. P value is not meaningful here.- Returns:
- a double
-
getVariables
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()getAlpha.
- Specified by:
getAlpha
in interfaceIndependenceTest
- Returns:
- a double
-
setAlpha
public void setAlpha(double alpha) Sets the significance level.- Specified by:
setAlpha
in interfaceIndependenceTest
- Parameters:
alpha
- This level.
-
getVariable
Returns The variable by the given name.- Specified by:
getVariable
in interfaceIndependenceTest
- Parameters:
name
- aString
object- Returns:
- This variable.
-
getVariable
getVariable.
- Parameters:
node
- aNode
object- Returns:
- the variable associated with the given node in the graph.
-
getNode
getNode.
- Parameters:
variable
- aNode
object- Returns:
- the node associated with the given variable in the graph.
-
toString
toString.
- Specified by:
toString
in interfaceIndependenceTest
- Overrides:
toString
in classObject
- Returns:
- a
String
object
-
getData
getData.
- Specified by:
getData
in interfaceIndependenceTest
- Returns:
- a
DataSet
object - See Also:
-
isVerbose
public boolean isVerbose()isVerbose.
- Specified by:
isVerbose
in interfaceIndependenceTest
- Returns:
- a boolean
-
setVerbose
public void setVerbose(boolean verbose) Sets whether this test will print verbose output.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- True, if so.
-