Class IndTestFisherZConcatenateResiduals

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

public final class IndTestFisherZConcatenateResiduals extends Object implements IndependenceTest
Calculates independence from pooled residuals using the Fisher Z method.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • IndTestFisherZConcatenateResiduals

      public IndTestFisherZConcatenateResiduals(List<DataSet> dataSets, double alpha)
      Constructor.
      Parameters:
      dataSets - The continuous datasets to analyze.
      alpha - The alpha significance cutoff value.
  • 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 instance of IndependenceTest.
    • checkIndependence

      public IndependenceResult checkIndependence(Node x, Node y, Set<Node> _z)
      Determines whether x _||_ y | 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()
      This method returns the alpha significance cutoff value used in the independence test.
      Specified by:
      getAlpha in interface IndependenceTest
      Returns:
      the alpha significance cutoff value
    • setAlpha

      public void setAlpha(double alpha)
      Sets the alpha significance cutoff value.
      Specified by:
      setAlpha in interface IndependenceTest
      Parameters:
      alpha - The alpha significance cutoff value.
      Throws:
      IllegalArgumentException - if the alpha value is outside the range [0, 1]
    • getVariables

      public List<Node> getVariables()
      Returns the list of variables used in this method.
      Specified by:
      getVariables in interface IndependenceTest
      Returns:
      The list of variables.
    • determines

      public boolean determines(List<Node> z, Node x) throws UnsupportedOperationException
      Determines whether the z nodes determine the x node.
      Parameters:
      z - The list of nodes to condition on.
      x - The node to test determination for.
      Returns:
      True if node x is dependent on nodes z, False otherwise.
      Throws:
      UnsupportedOperationException - Always throws this exception.
    • getData

      public DataSet getData()
      Returns the concatenated data.
      Specified by:
      getData in interface IndependenceTest
      Returns:
      This data
    • getCov

      public ICovarianceMatrix getCov()
      Returns the covariance matrix for the data sets.
      Specified by:
      getCov in interface IndependenceTest
      Returns:
      The covariance matrix of the standardized data sets.
    • toString

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

      public boolean isVerbose()
      Return True if verbose output should be printed.
      Specified by:
      isVerbose in interface IndependenceTest
      Returns:
      True, if so.
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets the verbose output flag.
      Specified by:
      setVerbose in interface IndependenceTest
      Parameters:
      verbose - Whether verbose output should be printed or not.