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.
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)
      Description copied from interface: IndependenceTest
      Returns an Independence test for a sublist of the variables.
      Specified by:
      indTestSubset in interface IndependenceTest
      Parameters:
      vars - The sublist of variables.
      Throws:
      UnsupportedOperationException - Not implemented.
    • checkIndependence

      public IndependenceResult checkIndependence(Node x, Node y, List<Node> z)
      Determines whether x _||_ y | z.
      Specified by:
      checkIndependence in interface IndependenceTest
      Returns:
      an independence result
      Throws:
      org.apache.commons.math3.linear.SingularMatrixException - if a matrix singularity is encountered.
      See Also:
    • getPValue

      public double getPValue()
      Returns:
      the probability associated with the most recently computed independence test.
    • setAlpha

      public void setAlpha(double alpha)
      Sets the significance level at which independence judgments should be made. Affects the cutoff for partial correlations to be considered statistically equal to zero.
      Specified by:
      setAlpha in interface IndependenceTest
      Parameters:
      alpha - This level.
    • getAlpha

      public double getAlpha()
      Gets the getModel significance level.
      Specified by:
      getAlpha in interface IndependenceTest
      Returns:
      This level.
    • getVariables

      public List<Node> getVariables()
      Specified by:
      getVariables in interface IndependenceTest
      Returns:
      the list of variables 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 x) throws UnsupportedOperationException
      Description copied from interface: IndependenceTest
      Returns true if y is determined the variable in z.
      Specified by:
      determines in interface IndependenceTest
      Returns:
      True if so.
      Throws:
      UnsupportedOperationException - Not implemented.
    • getData

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

      public ICovarianceMatrix getCov()
      Returns teh covaraince matrix of the concatenated data.
      Specified by:
      getCov in interface IndependenceTest
      Returns:
      This covariance matrix.
    • getScore

      public double getScore()
      Returns a number that is positive when dependence holds and more positive for greater dependence.
      Specified by:
      getScore in interface IndependenceTest
      Returns:
      This number
      See Also:
    • 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:
      a string representation of this test.
    • 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 whether verbose output is printed.
      Specified by:
      setVerbose in interface IndependenceTest
      Parameters:
      verbose - True if so.