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.
- 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) double
getAlpha()
Gets the getModel significance level.getCov()
Returns teh covaraince matrix of the concatenated data.getData()
Returns the concatenated data.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 significance level at which independence judgments should be made.void
setVerbose
(boolean verbose) Sets whether verbose output is printed.toString()
Returns a string representation of this test.Methods inherited from class java.lang.Object
clone, equals, finalize, 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
Constructor.- Parameters:
dataSets
- The continuous datasets to analyze.alpha
- The alpha significance cutoff value.
-
-
Method Details
-
indTestSubset
Description copied from interface:IndependenceTest
Returns an Independence test for a sublist of the variables.- Specified by:
indTestSubset
in interfaceIndependenceTest
- Parameters:
vars
- The sublist of variables.- Throws:
UnsupportedOperationException
- Not implemented.
-
checkIndependence
Determines whether x _||_ y | z.- Specified by:
checkIndependence
in interfaceIndependenceTest
- Returns:
- an independence result
- Throws:
org.apache.commons.math3.linear.SingularMatrixException
- if a matrix singularity is encountered.- See Also:
-
getAlpha
public double getAlpha()Gets the getModel significance level.- Specified by:
getAlpha
in interfaceIndependenceTest
- Returns:
- This level.
-
setAlpha
public void setAlpha(double alpha) 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:
setAlpha
in interfaceIndependenceTest
- Parameters:
alpha
- This level.
-
getVariables
- Specified by:
getVariables
in 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.
-
determines
- Throws:
UnsupportedOperationException
- Not implemented.
-
getData
Returns the concatenated data.- Specified by:
getData
in interfaceIndependenceTest
- Returns:
- This data
- See Also:
-
getCov
Returns teh covaraince matrix of the concatenated data.- Specified by:
getCov
in interfaceIndependenceTest
- Returns:
- This covariance matrix.
-
toString
Description copied from interface:IndependenceTest
Returns a string representation of this test.- Specified by:
toString
in interfaceIndependenceTest
- Overrides:
toString
in classObject
- Returns:
- a string representation of this test.
-
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 whether verbose output is printed.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- True, if so.
-