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.boolean
determines
(List<Node> z, Node x) Determines whether the z nodes determine the x node.double
getAlpha()
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.boolean
Return True if verbose output should be printed.void
setAlpha
(double alpha) Sets the alpha significance cutoff value.void
setVerbose
(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, wait
Methods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getDataSets, getSampleSize, getVariable, getVariableNames
-
Constructor Details
-
IndTestFisherZConcatenateResiduals
-
-
Method Details
-
indTestSubset
Returns an Independence test for a sublist of the variables.- Specified by:
indTestSubset
in interfaceIndependenceTest
- Parameters:
vars
- The sublist of variables.- Returns:
- an instance of IndependenceTest.
-
checkIndependence
Determines whether x _||_ y | z.- Specified by:
checkIndependence
in interfaceIndependenceTest
- Parameters:
x
- aNode
objecty
- aNode
object_z
- aSet
object- Returns:
- a
IndependenceResult
object - See Also:
-
getAlpha
public double getAlpha()This method returns the alpha significance cutoff value used in the independence test.- Specified by:
getAlpha
in interfaceIndependenceTest
- Returns:
- the alpha significance cutoff value
-
setAlpha
public void setAlpha(double alpha) Sets the alpha significance cutoff value.- Specified by:
setAlpha
in 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:
getVariables
in 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:
getData
in interfaceIndependenceTest
- Returns:
- This data
- See Also:
-
getCov
Returns the covariance matrix for the data sets.- Specified by:
getCov
in interfaceIndependenceTest
- Returns:
- The covariance matrix of the standardized data sets.
-
toString
Returns a string representation of the object.- Specified by:
toString
in interfaceIndependenceTest
- Overrides:
toString
in classObject
- Returns:
- A string representing the object.
-
isVerbose
public boolean isVerbose()Return True if verbose output should be printed.- Specified by:
isVerbose
in interfaceIndependenceTest
- Returns:
- True, if so.
-
setVerbose
public void setVerbose(boolean verbose) Sets the verbose output flag.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- Whether verbose output should be printed or not.
-