Package edu.cmu.tetrad.search.test
Class IndTestFisherZFisherPValue
java.lang.Object
edu.cmu.tetrad.search.test.IndTestFisherZFisherPValue
- All Implemented Interfaces:
IndependenceTest
Calculates independence from multiple datasets from using the Fisher method of pooling independence results. See this paper for details:
Tillman, R. E., & Eberhardt, F. (2014). Learning causal structure from multiple datasets with similar variable sets. Behaviormetrika, 41(1), 41-64.
- Author:
- robertillman, josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestFisherZFisherPValue(List<DataSet> dataSets, double alpha) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> _z) Determines whether variable x is independent of variable y given a list of conditioning variables z.booleandetermines(List<Node> z, Node x) doublegetAlpha()Gets the getModel significance level.getCov()Returns the covariance matrix of the concatenated data.getData()Returns the concatenated data.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.indTestSubset(List<Node> vars) Returns an Independence test for a sublist of the variables.booleanReturns True if verbose output should be printed.voidsetAlpha(double alpha) Sets the significance level at which independence judgments should be made.voidsetVerbose(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, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getDataSets, getSampleSize, getVariable, getVariableNames
-
Constructor Details
-
IndTestFisherZFisherPValue
Constructor.- Parameters:
dataSets- The continuous datasets to analyze.alpha- The alpha significance cutoff value.
-
-
Method Details
-
indTestSubset
Description copied from interface:IndependenceTestReturns an Independence test for a sublist of the variables.- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables.- Throws:
UnsupportedOperationException- Not implemented.
-
checkIndependence
Determines whether variable x is independent of variable y given a list of conditioning variables z.- Specified by:
checkIndependencein interfaceIndependenceTest- Parameters:
x- the one variable being compared.y- the second variable being compared._z- the list of conditioning variables.- Returns:
- True iff x _||_ y | z.
- Throws:
RuntimeException- if a matrix singularity is encountered.- See Also:
-
getAlpha
public double getAlpha()Gets the getModel significance level.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- this alpha.
-
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:
setAlphain interfaceIndependenceTest- Parameters:
alpha- This alpha.
-
getVariables
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.- Specified by:
getVariablesin interfaceIndependenceTest- Returns:
- This list.
-
determines
- Throws:
UnsupportedOperationException- Not implemented.
-
getData
Returns the concatenated data.- Specified by:
getDatain interfaceIndependenceTest- Returns:
- This data
- See Also:
-
getCov
Returns the covariance matrix of the concatenated data.- Specified by:
getCovin interfaceIndependenceTest- Returns:
- This covariance matrix.
-
toString
Returns a string representation of this test.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- This string.
-
isVerbose
public boolean isVerbose()Returns True if verbose output should be printed.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- True, if so.
-
setVerbose
public void setVerbose(boolean verbose) Sets whether verbose output is printed.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True, if so.
-