Class IndTestMnlrLr

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

public class IndTestMnlrLr extends Object implements IndependenceTest
Performs a test of conditional independence X _||_ Y | Z1...Zn where all searchVariables are either continuous or discrete. This test is valid for both ordinal and non-ordinal discrete searchVariables.
Version:
$Id: $Id
Author:
bryanandrews
  • Constructor Details

    • IndTestMnlrLr

      public IndTestMnlrLr(DataSet data, double alpha)
      Constructs a new independence test for the given data set and significance level.
      Parameters:
      data - the data set.
      alpha - the significance level.
  • Method Details

    • indTestSubset

      public IndependenceTest indTestSubset(List<Node> vars)
      This method returns an independence test for a sublist of variables.
      Specified by:
      indTestSubset in interface IndependenceTest
      Parameters:
      vars - The sublist of variables.
      Returns:
      An object of type IndependenceTest.
      Throws:
      UnsupportedOperationException - If this feature is not implemented.
    • checkIndependence

      public IndependenceResult checkIndependence(Node x, Node y, Set<Node> _z)
      Checks the independence between two nodes given a set of conditioning nodes.
      Specified by:
      checkIndependence in interface IndependenceTest
      Parameters:
      x - the first node
      y - the second node
      _z - the set of conditioning nodes
      Returns:
      the result of the independence test
      See Also:
    • getVariables

      public List<Node> getVariables()

      getVariables.

      Specified by:
      getVariables in interface IndependenceTest
      Returns:
      the list of searchVariables over which this independence checker is capable of determinining independence relations.
    • determines

      public boolean determines(List<Node> z, Node y)
      Determines the independence relation between a list of conditioning nodes and a target node.
      Parameters:
      z - The list of conditioning nodes.
      y - The target node.
      Returns:
      true if the target node is independent of the conditioning nodes; false otherwise.
    • getAlpha

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

      public void setAlpha(double alpha)
      Sets the significance level for the independence test.
      Specified by:
      setAlpha in interface IndependenceTest
      Parameters:
      alpha - The significance level to set.
    • getData

      public DataSet getData()
      Returns the dataset.
      Specified by:
      getData in interface IndependenceTest
      Returns:
      The dataset.
      See Also:
    • isVerbose

      public boolean isVerbose()
      Determines if the test prints verbose output.
      Specified by:
      isVerbose in interface IndependenceTest
      Returns:
      True if the test prints verbose output, false otherwise.
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets whether this test will print verbose output.
      Specified by:
      setVerbose in interface IndependenceTest
      Parameters:
      verbose - True, if so.
    • toString

      public String toString()
      Returns a string representation of this object.
      Specified by:
      toString in interface IndependenceTest
      Overrides:
      toString in class Object
      Returns:
      the string representation of this object.