Class IndTestFisherZRecursive
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestFisherZRecursive
- All Implemented Interfaces:
IndependenceTest
@Deprecated(since="7.9",
forRemoval=false)
public final class IndTestFisherZRecursive
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
ConstructorsConstructorDescriptionIndTestFisherZRecursive(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).IndTestFisherZRecursive(ICovarianceMatrix covMatrix, double alpha) Deprecated.Constructs a new independence test that will determine conditional independence facts using the given correlation matrix and the given significance level.IndTestFisherZRecursive(Matrix data, List<Node> variables, double alpha) Deprecated.Constructs a new Fisher Z independence test with the listed arguments. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> z) Deprecated.Checks the independence between two variables x and y given a conditioning set z.booleandetermines(Set<Node> _z, Node x) Deprecated.Returns true if y is determined the variable in z.doublegetAlpha()Deprecated.Gets the getModel significance level.getCov()Deprecated.getCov.getData()Deprecated.getData.Deprecated.Returns the datasets for this testdoubleDeprecated.getPValue.intDeprecated.Returns the sample size.getVariable(String name) Deprecated.Returns The variable by the given name.Deprecated.Getter for the fieldvariables.indTestSubset(List<Node> vars) Deprecated.Returns an Independence test for a sublist of the variables.booleanDeprecated.isVerbose.voidsetAlpha(double alpha) Deprecated.Sets the significance level.voidsetVariables(List<Node> variables) Deprecated.Setter for the fieldvariables.voidsetVerbose(boolean verbose) Deprecated.Sets whether this test will print verbose output.toString()Deprecated.toString.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, getVariableNames
-
Constructor Details
-
IndTestFisherZRecursive
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.
-
IndTestFisherZRecursive
Deprecated.Constructs a new Fisher Z independence test with the listed arguments.- Parameters:
data- A 2D continuous data set with no missing values.variables- A list of variables, a subset of the variables ofdata.alpha- The significance cutoff level. p values less than alpha will be reported as dependent.
-
IndTestFisherZRecursive
Deprecated.Constructs a new independence test that will determine conditional independence facts using the given correlation matrix and the given significance level.- Parameters:
covMatrix- aICovarianceMatrixobjectalpha- a double
-
-
Method Details
-
indTestSubset
Deprecated.Returns an Independence test for a sublist of the variables.Creates a new independence test instance for a subset of the variables.
- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables.- Returns:
- a
IndependenceTestobject
-
checkIndependence
Deprecated.Checks the independence between two variables x and y given a conditioning set z.Determines whether variable x is independent of variable y given a list of conditioning variables z.
- Specified by:
checkIndependencein interfaceIndependenceTest- Parameters:
x- aNodeobjecty- aNodeobjectz- aSetobject- Returns:
- a
IndependenceResultobject
-
getPValue
public double getPValue()Deprecated.getPValue.
- Returns:
- the probability associated with the most recently computed independence test.
-
getAlpha
public double getAlpha()Deprecated.Gets the getModel significance level.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- a double
-
setAlpha
public void setAlpha(double alpha) Deprecated.Sets the significance level.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:
setAlphain interfaceIndependenceTest- Parameters:
alpha- This level.
-
getVariables
Deprecated.Getter for the field
variables.- Specified by:
getVariablesin interfaceIndependenceTest- 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.
-
setVariables
Deprecated.Setter for the field
variables.- Parameters:
variables- aListobject
-
getVariable
Deprecated.Returns The variable by the given name.- Specified by:
getVariablein interfaceIndependenceTest- Parameters:
name- aStringobject- Returns:
- This variable.
-
determines
Deprecated.Returns true if y is determined the variable in z.If
isDeterminismAllowed(), deters to IndTestFisherZD; otherwise throws UnsupportedOperationException.- Specified by:
determinesin interfaceIndependenceTest- Parameters:
_z- aSetobjectx- aNodeobject- Returns:
- True, if so.
- Throws:
UnsupportedOperationException
-
getData
Deprecated.getData.
- Specified by:
getDatain interfaceIndependenceTest- Returns:
- the data set being analyzed.
-
toString
Deprecated.toString.
- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- a string representation of this test.
-
getCov
Deprecated.getCov.
- Specified by:
getCovin interfaceIndependenceTest- Returns:
- a
ICovarianceMatrixobject
-
getDataSets
Deprecated.Returns the datasets for this test- Specified by:
getDataSetsin interfaceIndependenceTest- Returns:
- these datasets.
-
getSampleSize
public int getSampleSize()Deprecated.Returns the sample size.- Specified by:
getSampleSizein interfaceIndependenceTest- Returns:
- This size.
-
isVerbose
public boolean isVerbose()Deprecated.isVerbose.
- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- a boolean
-
setVerbose
public void setVerbose(boolean verbose) Deprecated.Sets whether this test will print verbose output.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True, if so.
-