Class IndTestSepsetDci

java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestSepsetDci
All Implemented Interfaces:
IndependenceTest

public class IndTestSepsetDci extends Object implements IndependenceTest
Checks independence facts for variables associated with a sepset by simply querying the sepset
Author:
Robert Tillman
  • Constructor Details

    • IndTestSepsetDci

      public IndTestSepsetDci(SepsetMapDci sepset, List<Node> nodes)
      Constructs a new independence test that returns d-separation facts for the given graph as independence results.
  • Method Details

    • indTestSubset

      public IndependenceTest indTestSubset(List<Node> vars)
      Required by IndependenceTest.
      Specified by:
      indTestSubset in interface IndependenceTest
      Parameters:
      vars - The sublist of variables.
    • checkIndependence

      public IndependenceResult checkIndependence(Node x, Node y, Set<Node> z)
      Checks the indicated independence fact.
      Specified by:
      checkIndependence in interface IndependenceTest
      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

      public List<Node> getVariables()
      Specified by:
      getVariables in 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.
    • determines

      public boolean determines(List<Node> z, Node x1)
    • getAlpha

      public double getAlpha()
      Description copied from interface: IndependenceTest
      Returns the significance level of the independence test.
      Specified by:
      getAlpha in interface IndependenceTest
      Returns:
      This level.
    • setAlpha

      public void setAlpha(double alpha)
      Description copied from interface: IndependenceTest
      Sets the significance level.
      Specified by:
      setAlpha in interface IndependenceTest
      Parameters:
      alpha - This level.
    • getVariable

      public Node getVariable(String name)
      Description copied from interface: IndependenceTest
      Returns The variable by the given name.
      Specified by:
      getVariable in interface IndependenceTest
      Returns:
      This variable.
    • getVariable

      public Node getVariable(Node node)
      Returns:
      the variable associated with the given node in the graph.
    • getNode

      public Node getNode(Node variable)
      Returns:
      the node associated with the given variable in the graph.
    • toString

      public String toString()
      Description copied from interface: IndependenceTest
      Returns a string representation of this test.
      Specified by:
      toString in interface IndependenceTest
      Overrides:
      toString in class Object
      Returns:
      This string.
    • getData

      public DataSet getData()
      Specified by:
      getData in interface IndependenceTest
      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 interface IndependenceTest
      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 interface IndependenceTest
      Parameters:
      verbose - True, if so.