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 SummaryConstructorsConstructorDescriptionIndTestSepset(SepsetMapDci sepset, List<Node> nodes) Constructs a new independence test that returns d-separation facts for the given graph as independence results.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, List<Node> z) Checks the indicated independence fact.booleandetermines(List<Node> z, Node x1) doublegetAlpha()getCov()getData()doubleNeeded for IndependenceTest interface.intdoublegetScore()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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence
- 
Constructor Details- 
IndTestSepsetConstructs a new independence test that returns d-separation facts for the given graph as independence results.
 
- 
- 
Method Details- 
indTestSubsetRequired by IndependenceTest.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Returns:
- an Independence test for a subset of the variables.
 
- 
checkIndependenceChecks the indicated independence fact.- Specified by:
- checkIndependencein interface- IndependenceTest
- Parameters:
- x- one node.
- y- a second node.
- z- a List of nodes (conditioning variables)
- Returns:
- true iff x _||_ y | z
 
- 
getPValuepublic double getPValue()Needed for IndependenceTest interface. P value is not meaningful here.
- 
getVariables- Specified by:
- getVariablesin interface- IndependenceTest
- 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.
 
- 
getVariableNames- Specified by:
- getVariableNamesin interface- IndependenceTest
- Returns:
- the list of variable varNames.
 
- 
determines- Specified by:
- determinesin interface- IndependenceTest
- Returns:
- true if y is determined the variable in z.
 
- 
getAlphapublic double getAlpha()- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- the significance level of the independence test.
 
- 
setAlphapublic void setAlpha(double alpha) Description copied from interface:IndependenceTestSets the significance level.- Specified by:
- setAlphain interface- IndependenceTest
 
- 
getVariable- Specified by:
- getVariablein interface- IndependenceTest
- 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 interface- IndependenceTest
- Overrides:
- toStringin class- Object
 
- 
getData- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- The data model for the independence test.
 
- 
getCov- Specified by:
- getCovin interface- IndependenceTest
 
- 
getDataSets- Specified by:
- getDataSetsin interface- IndependenceTest
 
- 
getSampleSizepublic int getSampleSize()- Specified by:
- getSampleSizein interface- IndependenceTest
 
- 
getCovMatrices- Specified by:
- getCovMatricesin interface- IndependenceTest
 
- 
getScorepublic double getScore()Description copied from interface:IndependenceTestA score that is higher with more likely models.- Specified by:
- getScorein interface- IndependenceTest
 
- 
isVerbosepublic boolean isVerbose()- Specified by:
- isVerbosein interface- IndependenceTest
 
- 
setVerbosepublic void setVerbose(boolean verbose) - Specified by:
- setVerbosein interface- IndependenceTest
 
 
-