Class DeltaTetradTest

java.lang.Object
edu.cmu.tetrad.search.utils.DeltaTetradTest

public class DeltaTetradTest extends Object
Refactored implementation of the Delta Tetrad Test for Confirmatory Tetrad Analysis (CTA). This version improves modularity, exception handling, and robustness.

Reference: Bollen and Ting, "Confirmatory Tetrad Analysis," Sociological Methodology, 1993.

Author:
Refactored
  • Constructor Details

    • DeltaTetradTest

      public DeltaTetradTest(DataSet dataSet)
      Constructor for Gaussian data.
      Parameters:
      dataSet - A continuous dataset.
    • DeltaTetradTest

      public DeltaTetradTest(ICovarianceMatrix covarianceMatrix)
      Constructor for a covariance matrix.
      Parameters:
      covarianceMatrix - The covariance matrix.
  • Method Details

    • computePValue

      public double computePValue(TetradInt... tetrads)
      Computes the p-value for the given tetrads.
      Parameters:
      tetrads - List of tetrads.
      Returns:
      The p-value.
    • computePValue

      public double computePValue(List<TetradInt> tetrads)
      Computes the p-value for the given tetrads.
      Parameters:
      tetrads - List of tetrads.
      Returns:
      The p-value.
    • getVariables

      public List<Node> getVariables()
      Returns the list of variables in the dataset.
      Returns:
      The variable list.