Package edu.cmu.tetrad.search
Class IndTestSepset
java.lang.Object
edu.cmu.tetrad.search.IndTestSepset
- All Implemented Interfaces:
IndependenceTest
Checks independence facts for variables associated associated with a sepset by simply querying the sepset
- Author:
- Robert Tillman
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestSepset(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, List<Node> z) Checks the indicated independence fact.booleandetermines(List<Node> z, Node x1) doublegetAlpha()getData()doubleNeeded for IndependenceTest interface.doublegetScore()A score that is higher with more likely models.getVariable(Node node) getVariable(String name) indTestSubset(List<Node> vars) Required by IndependenceTest.booleanvoidsetAlpha(double alpha) Sets the significance level.voidsetVerbose(boolean verbose) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, getCov, getDataSets, getSampleSize, getVariableNames
-
Constructor Details
-
IndTestSepset
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:
indTestSubsetin interfaceIndependenceTest- Returns:
- an Independence test for a subset of the variables.
-
checkIndependence
Checks the indicated independence fact.- Specified by:
checkIndependencein 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:
getVariablesin 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
- Specified by:
determinesin interfaceIndependenceTest- Returns:
- true if y is determined the variable in z.
-
getAlpha
public double getAlpha()- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- the significance level of the independence test.
-
setAlpha
public void setAlpha(double alpha) Description copied from interface:IndependenceTestSets the significance level.- Specified by:
setAlphain interfaceIndependenceTest
-
getVariable
- Specified by:
getVariablein interfaceIndependenceTest- Returns:
- the variable by the given name.
-
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
- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject
-
getData
- Specified by:
getDatain interfaceIndependenceTest- Returns:
- The data model for the independence test.
-
getScore
public double getScore()Description copied from interface:IndependenceTestA score that is higher with more likely models.- Specified by:
getScorein interfaceIndependenceTest
-
isVerbose
public boolean isVerbose()- Specified by:
isVerbosein interfaceIndependenceTest
-
setVerbose
public void setVerbose(boolean verbose) - Specified by:
setVerbosein interfaceIndependenceTest
-