Package edu.cmu.tetrad.search.test
Class IndTestFisherZConcatenateResiduals
java.lang.Object
edu.cmu.tetrad.search.test.IndTestFisherZConcatenateResiduals
- All Implemented Interfaces:
IndependenceTest
Calculates independence from pooled residuals using the Fisher Z method.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestFisherZConcatenateResiduals(List<DataSet> dataSets, double alpha) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> _z) Determines whether x _||_ y | z.booleandetermines(List<Node> z, Node x) Determines whether the z nodes determine the x node.doublegetAlpha()This method returns the alpha significance cutoff value used in the independence test.getCov()Returns the covariance matrix for the data sets.getData()Returns the concatenated data.Returns the list of variables used in this method.indTestSubset(List<Node> vars) Returns an Independence test for a sublist of the variables.booleanReturn True if verbose output should be printed.voidsetAlpha(double alpha) Sets the alpha significance cutoff value.voidsetVerbose(boolean verbose) Sets the verbose output flag.toString()Returns a string representation of the object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getDataSets, getSampleSize, getVariable, getVariableNames
-
Constructor Details
-
IndTestFisherZConcatenateResiduals
Constructor.- Parameters:
dataSets- The continuous datasets to analyze.alpha- The alpha significance cutoff value.
-
-
Method Details
-
indTestSubset
Returns an Independence test for a sublist of the variables.- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables.- Returns:
- an instance of IndependenceTest.
-
checkIndependence
Determines whether x _||_ y | z.- Specified by:
checkIndependencein interfaceIndependenceTest- Parameters:
x- aNodeobjecty- aNodeobject_z- aSetobject- Returns:
- a
IndependenceResultobject - See Also:
-
getAlpha
public double getAlpha()This method returns the alpha significance cutoff value used in the independence test.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- the alpha significance cutoff value
-
setAlpha
public void setAlpha(double alpha) Sets the alpha significance cutoff value.- Specified by:
setAlphain interfaceIndependenceTest- Parameters:
alpha- The alpha significance cutoff value.- Throws:
IllegalArgumentException- if the alpha value is outside the range [0, 1]
-
getVariables
Returns the list of variables used in this method.- Specified by:
getVariablesin interfaceIndependenceTest- Returns:
- The list of variables.
-
determines
Determines whether the z nodes determine the x node.- Parameters:
z- The list of nodes to condition on.x- The node to test determination for.- Returns:
- True if node x is dependent on nodes z, False otherwise.
- Throws:
UnsupportedOperationException- Always throws this exception.
-
getData
Returns the concatenated data.- Specified by:
getDatain interfaceIndependenceTest- Returns:
- This data
- See Also:
-
getCov
Returns the covariance matrix for the data sets.- Specified by:
getCovin interfaceIndependenceTest- Returns:
- The covariance matrix of the standardized data sets.
-
toString
Returns a string representation of the object.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- A string representing the object.
-
isVerbose
public boolean isVerbose()Return True if verbose output should be printed.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- True, if so.
-
setVerbose
public void setVerbose(boolean verbose) Sets the verbose output flag.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- Whether verbose output should be printed or not.
-