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.booleandetermines(List<Node> z, Node x1) doublegetAlpha()Returns the significance level of the independence test.getData()doubleNeeded for IndependenceTest interface.getVariable(Node node) getVariable(String name) Returns The variable by the given name.indTestSubset(List<Node> vars) Required by IndependenceTest.booleanReturns true if the test prints verbose output.voidsetAlpha(double alpha) Sets the significance level.voidsetVerbose(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, waitMethods 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:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of 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
-
getAlpha
public double getAlpha()Description copied from interface:IndependenceTestReturns the significance level of the independence test.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- This level.
-
setAlpha
public void setAlpha(double alpha) Description copied from interface:IndependenceTestSets the significance level.- Specified by:
setAlphain interfaceIndependenceTest- Parameters:
alpha- This level.
-
getVariable
Description copied from interface:IndependenceTestReturns The variable by the given name.- Specified by:
getVariablein 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:IndependenceTestReturns a string representation of this test.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- This string.
-
getData
- Specified by:
getDatain 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:IndependenceTestReturns true if the test prints verbose output.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- True if the case.
-
setVerbose
public void setVerbose(boolean verbose) Description copied from interface:IndependenceTestSets whether this test will print verbose output.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True, if so.
-