Package edu.cmu.tetrad.search.test
Class IndTestTrekSep
java.lang.Object
edu.cmu.tetrad.search.test.IndTestTrekSep
- All Implemented Interfaces:
IndependenceTest
@Deprecated(since="7.9",
forRemoval=false)
public final class IndTestTrekSep
extends Object
implements IndependenceTest
Deprecated.
Use IndTestBlocksTs instead.
Checks d-separations in a structural model using t-separations over indicators.
- Version:
- $Id: $Id
- Author:
- Adam Brodie
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestTrekSep(ICovarianceMatrix covMatrix, double alpha, List<List<Node>> clustering, List<Node> latents) Deprecated.Constructs a new independence test that will determine conditional independence facts using the given correlation matrix and the given significance level. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> z) Deprecated.Determines independence between variables x and y, given the set of variables z.booleandetermines(List<Node> z, Node x) Deprecated.Determines the independence between a set of variables z and a variable x.doublegetAlpha()Deprecated.Gets the model significance level.getCov()Deprecated.Returns the covariance matrix.getData()Deprecated.Gets the data set used for the independence test.Deprecated.Returns the data sets used for the independence test.intDeprecated.Returns the sample size used in the covariance matrix.getVariable(String name) Deprecated.Gets the variable with the given name.Deprecated.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.indTestSubset(List<Node> vars) Deprecated.Determines independence between variables in a given subset.booleanDeprecated.Checks whether verbose output is enabled.voidsetAlpha(double alpha) Deprecated.Sets the significance level for the independence test.voidsetVariables(List<Node> variables) Deprecated.Sets the varialbe to this list (of the same length).voidsetVerbose(boolean verbose) Deprecated.Sets the verbose output flag.toString()Deprecated.Returns a string representation of this test.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.test.IndependenceTest
checkIndependence, determines, getVariableNames
-
Constructor Details
-
IndTestTrekSep
public IndTestTrekSep(ICovarianceMatrix covMatrix, double alpha, List<List<Node>> clustering, List<Node> latents) Deprecated.Constructs a new independence test that will determine conditional independence facts using the given correlation matrix and the given significance level.- Parameters:
covMatrix- The covariance over the measures.alpha- The significance level.clustering- The clustering of the measured variables. In each cluster, all measured variable in the cluster are explained by a single latent.latents- The list of latent variables for the clusters, in order.
-
-
Method Details
-
indTestSubset
Deprecated.Determines independence between variables in a given subset.- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables to test for independence.- Returns:
- An IndependenceTest object representing the result of the independence test.
- Throws:
IllegalArgumentException- If the subset of variables is empty or contains variables that are not part of the original variables.
-
checkIndependence
Deprecated.Determines independence between variables x and y, given the set of variables z.- Specified by:
checkIndependencein interfaceIndependenceTest- Parameters:
x- The first variable.y- The second variable.z- The set of variables.- Returns:
- An IndependenceResult object representing the result of the independence test.
-
getAlpha
public double getAlpha()Deprecated.Gets the model significance level.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- This alpha.
-
setAlpha
public void setAlpha(double alpha) Deprecated.Sets the significance level for the independence test.- Specified by:
setAlphain interfaceIndependenceTest- Parameters:
alpha- The significance level. Must be between 0.0 and 1.0 (inclusive).- Throws:
IllegalArgumentException- If the significance level is out of range.
-
getVariables
Deprecated.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.- Specified by:
getVariablesin interfaceIndependenceTest- Returns:
- This list.
-
setVariables
Deprecated.Sets the varialbe to this list (of the same length). Useful is multiple test are used that need the same object-identical lists of variables.- Parameters:
variables- This list.
-
getVariable
Deprecated.Gets the variable with the given name.- Specified by:
getVariablein interfaceIndependenceTest- Parameters:
name- The name of the variable to get.- Returns:
- The Node object representing the variable.
-
determines
Deprecated.Determines the independence between a set of variables z and a variable x.- Parameters:
z- The set of variables to determine independence with x.x- The variable to determine independence with z.- Returns:
- true if the variable x is conditionally independent from the set of variables z, false otherwise.
- Throws:
UnsupportedOperationException- if the covariance matrix is singular or not invertible.
-
getData
Deprecated.Gets the data set used for the independence test.- Specified by:
getDatain interfaceIndependenceTest- Returns:
- The data set used for the independence test.
-
toString
Deprecated.Returns a string representation of this test.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- This string.
-
getCov
Deprecated.Returns the covariance matrix.- Specified by:
getCovin interfaceIndependenceTest- Returns:
- This matrix.
-
getDataSets
Deprecated.Returns the data sets used for the independence test.- Specified by:
getDataSetsin interfaceIndependenceTest- Returns:
- The list of data sets used for the independence test.
-
getSampleSize
public int getSampleSize()Deprecated.Returns the sample size used in the covariance matrix.- Specified by:
getSampleSizein interfaceIndependenceTest- Returns:
- The sample size.
-
isVerbose
public boolean isVerbose()Deprecated.Checks whether verbose output is enabled.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- true if verbose output is enabled, false otherwise.
-
setVerbose
public void setVerbose(boolean verbose) Deprecated.Sets the verbose output flag.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True, if verbose output is enabled. False otherwise.
-