Package edu.cmu.tetrad.search.ntad_test
Class BollenTing
java.lang.Object
edu.cmu.tetrad.search.ntad_test.NtadTest
edu.cmu.tetrad.search.ntad_test.BollenTing
The BollenTing class extends the NtadTest class and provides statistical methods for computing tetrad and tetrads
statistics. These computations are used in hypothesis testing and involve tetrad determinants and p-values derived
from chi-squared distributions. The class supports handling single and multiple tetrads, as well as flexible options
such as resampling and fractional sampling rates.
-
Constructor Summary
ConstructorsConstructorDescriptionBollenTing(org.ejml.simple.SimpleMatrix df) Constructs a BollenTing object for performing statistical operations based on the given data matrix.BollenTing(org.ejml.simple.SimpleMatrix df, boolean covariances) Constructs a BollenTing object for performing statistical operations. -
Method Summary
Modifier and TypeMethodDescriptiondoubletetrad(int[][] tet) Computes the value of a statistical test based on the input tetrad configuration.doubletetrad(int[][] tet, boolean resample, double frac) Computes the value of a statistical test based on the given tetrad configuration, with optional resampling.doubletetrads(int[][]... tets) Computes the statistical test results for multiple sets of tetrad configurations.doubleComputes a statistical measure based on the input list of tetrad configurations.doubleMethods inherited from class edu.cmu.tetrad.search.ntad_test.NtadTest
allGreaterThanAlpha, variables
-
Constructor Details
-
BollenTing
public BollenTing(org.ejml.simple.SimpleMatrix df) Constructs a BollenTing object for performing statistical operations based on the given data matrix. This constructor initializes the instance using the input data matrix and sets a default value for the covariances flag (false), meaning the covariance matrices will be computed from the input data.- Parameters:
df- the input data matrix as a SimpleMatrix object, where each row represents an observation and each column represents a variable.
-
BollenTing
public BollenTing(org.ejml.simple.SimpleMatrix df, boolean covariances) Constructs a BollenTing object for performing statistical operations. This constructor initializes the instance using a data matrix and a boolean flag indicating whether covariance matrices should be used directly or computed from the input data.- Parameters:
df- the input data matrix as a SimpleMatrix object, where each row represents an observation and each column represents a variable.covariances- a boolean flag that determines whether the input matrix is treated as a covariance matrix (true) or as raw data from which covariances should be calculated (false).
-
-
Method Details
-
tetrad
public double tetrad(int[][] tet, boolean resample, double frac) Description copied from class:NtadTestComputes the value of a statistical test based on the given tetrad configuration, with optional resampling. A tetrad is a set of indices representing structural relationships among variables. This method evaluates the statistical consistency of such configurations.- Specified by:
tetradin classNtadTest- Parameters:
tet- a 2D integer array where each inner array defines a tetrad configuration. Each configuration specifies indices representing structural relationships among variables.resample- a boolean indicating whether resampling should be applied to the data matrix for the computation.frac- a double value representing the fraction of data to use during resampling, ignored if resample is false.- Returns:
- a double value representing the computed result of the statistical tetrad test.
-
tetrads
-
tetrad
public double tetrad(int[][] tet) Description copied from class:NtadTestComputes the value of a statistical test based on the input tetrad configuration. A tetrad is a set of indices specifying structural relationships between variables, and this method evaluates the statistical consistency of such configurations.- Specified by:
tetradin classNtadTest- Parameters:
tet- a 2D integer array where each inner array defines a tetrad configuration. Each tetrad specifies indices representing a structural relationship among variables.- Returns:
- a double value representing the computed result of the statistical tetrad test.
-
tetrads
public double tetrads(int[][]... tets) Description copied from class:NtadTestComputes the statistical test results for multiple sets of tetrad configurations. A tetrad is a set of indices specifying structural relationships among variables, and this method evaluates the statistical consistency for each provided configuration.- Specified by:
tetradsin classNtadTest- Parameters:
tets- a series of 2D integer arrays, where each array contains multiple tetrad configurations. Each configuration specifies a set of indices representing structural relationships among variables.- Returns:
- a double value representing the aggregated or combined result of the statistical tests applied to the provided tetrad configurations.
-
tetrads
Description copied from class:NtadTestComputes a statistical measure based on the input list of tetrad configurations. Each tetrad configuration represents a set of structural relationships among variables. This method evaluates and combines the statistical results of all provided configurations.- Specified by:
tetradsin classNtadTest- Parameters:
tets- a list of 2D integer arrays where each array contains multiple tetrad configurations. Each configuration is a set of integer indices representing structural relationships.- Returns:
- a double value representing the combined statistical measure for the provided tetrad configurations.
-