Class IndTestPositiveCorr
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestPositiveCorr
- All Implemented Interfaces:
IndependenceTest
@Deprecated(since="7.9",
forRemoval=false)
public final class IndTestPositiveCorr
extends Object
implements IndependenceTest
Deprecated.
Checks conditional independence of variable in a continuous data set using Fisher's Z test. See Spirtes, Glymour, and
Scheines, "Causation, Prediction and Search," 2nd edition, page 94.
- Version:
- $Id: $Id
- Author:
- josephramsey, Frank Wimberly adapted IndTestCramerT for Fisher's Z
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestPositiveCorr(DataSet dataSet, double alpha) Deprecated.Constructs a new Independence test which checks independence facts based on the correlation matrix implied by the given data set (must be continuous). -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence(Node x0, Node y0, Set<Node> _z0) Deprecated.Checks the independence between two nodes, given a set of conditioning nodes.booleandetermines(List<Node> z, Node x) Deprecated.Determines if there exists a causal relationship between the nodes in z and node x.doublegetAlpha()Deprecated.Retrieves the alpha level of the Independence Test.getCov()Deprecated.getCov.getData()Deprecated.Retrieve the data set used in the independence test.Deprecated.Retrieves the data sets used in the independence test.doubleDeprecated.Calculates the p-value for the independence test.intDeprecated.Retrieves the sample size of the covariance matrix.getVariable(String name) Deprecated.Retrieves the node associated with the given variable name.Deprecated.Retrieves the list of variables used in the independence test.indTestSubset(List<Node> vars) Deprecated.Performs an independence test on a subset of variables.booleanDeprecated.Returns whether the verbose mode is enabled.voidsetAlpha(double alpha) Deprecated.Set the alpha level for the significance of the test.voidsetVariables(List<Node> variables) Deprecated.Sets the variables used in the independence test.voidsetVerbose(boolean verbose) Deprecated.Sets the verbose mode to either enabled or disabled.toString()Deprecated.Returns a string representation of the Fisher Z object.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
-
IndTestPositiveCorr
Deprecated.Constructs a new Independence test which checks independence facts based on the correlation matrix implied by the given data set (must be continuous). The given significance level is used.- Parameters:
dataSet- A data set containing only continuous columns.alpha- The alpha level of the test.
-
-
Method Details
-
indTestSubset
Deprecated.Performs an independence test on a subset of variables.- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables.- Returns:
- An IndependenceTest object representing the result of the test.
- Throws:
UnsupportedOperationException- This method is not implemented and will always throw an UnsupportedOperationException.
-
checkIndependence
Deprecated.Checks the independence between two nodes, given a set of conditioning nodes.- Specified by:
checkIndependencein interfaceIndependenceTest- Parameters:
x0- First node to check independence for.y0- Second node to check independence for._z0- Set of conditioning nodes.- Returns:
- An IndependenceResult object representing the result of the independence test.
-
getPValue
public double getPValue()Deprecated.Calculates the p-value for the independence test.- Returns:
- The p-value of the independence test.
-
getAlpha
public double getAlpha()Deprecated.Retrieves the alpha level of the Independence Test.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- The alpha level.
-
setAlpha
public void setAlpha(double alpha) Deprecated.Set the alpha level for the significance of the test.- Specified by:
setAlphain interfaceIndependenceTest- Parameters:
alpha- The alpha level for the significance of the test. Must be a value between 0.0 and 1.0, inclusive.- Throws:
IllegalArgumentException- if the alpha value is out of range.
-
getVariables
Deprecated.Retrieves the list of variables used in the independence test.- Specified by:
getVariablesin interfaceIndependenceTest- Returns:
- The list of variables used in the independence test.
-
setVariables
Deprecated.Sets the variables used in the independence test.- Parameters:
variables- A list of Nodes representing the variables to be used in the test.- Throws:
IllegalArgumentException- if the number of variables is different from the current number of variables in the test.
-
getVariable
Deprecated.Retrieves the node associated with the given variable name.- Specified by:
getVariablein interfaceIndependenceTest- Parameters:
name- aStringobject representing the variable name.- Returns:
- the node associated with the variable name.
-
determines
Deprecated.Determines if there exists a causal relationship between the nodes in z and node x.- Parameters:
z- The list of nodes representing the potential causes.x- The node representing the potential effect.- Returns:
- true if there exists a causal relationship between the nodes in z and node x, false otherwise.
- Throws:
UnsupportedOperationException- if the method is not implemented.
-
getData
Deprecated.Retrieve the data set used in the independence test.- Specified by:
getDatain interfaceIndependenceTest- Returns:
- The data set.
-
toString
Deprecated.Returns a string representation of the Fisher Z object.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- A string representation of the Fisher Z object.
-
getCov
Deprecated.getCov.
- Specified by:
getCovin interfaceIndependenceTest- Returns:
- a
ICovarianceMatrixobject
-
getDataSets
Deprecated.Retrieves the data sets used in the independence test.- Specified by:
getDataSetsin interfaceIndependenceTest- Returns:
- A list of data sets.
-
getSampleSize
public int getSampleSize()Deprecated.Retrieves the sample size of the covariance matrix.- Specified by:
getSampleSizein interfaceIndependenceTest- Returns:
- The sample size.
-
isVerbose
public boolean isVerbose()Deprecated.Returns whether the verbose mode is enabled.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- true if verbose mode is enabled, false otherwise.
-
setVerbose
public void setVerbose(boolean verbose) Deprecated.Sets the verbose mode to either enabled or disabled.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True if verbose mode is enabled, false otherwise.
-