Class IndTestMulti

java.lang.Object
edu.cmu.tetrad.search.test.IndTestMulti
All Implemented Interfaces:
IndependenceTest

public final class IndTestMulti extends Object implements IndependenceTest
A class that represents a pooled independence test for multiple data sets.
  • Constructor Details

    • IndTestMulti

      public IndTestMulti(List<IndependenceTest> independenceTests, ResolveSepsets.Method method)
      Constructs a new pooled independence test for the given data sets.
      Parameters:
      independenceTests - the independence tests to pool.
      method - the method to use for pooling.
      See Also:
  • Method Details

    • indTestSubset

      public IndependenceTest indTestSubset(List<Node> vars)
      Returns an Independence test for a sublist of the variables.
      Specified by:
      indTestSubset in interface IndependenceTest
      Parameters:
      vars - The sublist of variables.
      Returns:
      an IndependenceTest object
    • checkIndependence

      public IndependenceResult checkIndependence(Node x, Node y, Set<Node> z)
      Determines whether variable x is independent of variable y given a list of conditioning variables z.
      Specified by:
      checkIndependence in interface IndependenceTest
      Parameters:
      x - a Node object
      y - a Node object
      z - a Set object
      Returns:
      a IndependenceResult object
      See Also:
    • getAlpha

      public double getAlpha()
      Gets the getModel significance level.
      Specified by:
      getAlpha in interface IndependenceTest
      Returns:
      a double
    • 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.
    • getVariables

      public List<Node> getVariables()
      Retrieves the list of variables associated with this object.
      Specified by:
      getVariables in interface IndependenceTest
      Returns:
      the list of variables associated with this object.
    • determines

      public boolean determines(List<Node> z, Node x) throws UnsupportedOperationException
      Determines whether variable x is independent of variable y given a list of conditioning variables z.
      Parameters:
      z - A list of conditioning variables.
      x - The variable x.
      Returns:
      True if variable x is independent of variable y given the conditioning variables z, false otherwise.
      Throws:
      UnsupportedOperationException - if the method is not implemented.
    • getData

      public DataSet getData()
      Retrieves the data set.
      Specified by:
      getData in interface IndependenceTest
      Returns:
      the data set.
      See Also:
    • toString

      public String toString()
      Returns a string representation of this object, which includes the alpha value of the independence test.
      Specified by:
      toString in interface IndependenceTest
      Overrides:
      toString in class Object
      Returns:
      the string representation of this object
    • isVerbose

      public boolean isVerbose()
      Returns true 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 verbose output should be printed during the test.
      Specified by:
      setVerbose in interface IndependenceTest
      Parameters:
      verbose - True to enable verbose output, false otherwise.