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.
- Version:
- $Id: $Id
- Author:
- robertillman, josephramsey
- 
Constructor SummaryConstructorsConstructorDescriptionIndTestFisherZFisherPValue(List<DataSet> dataSets, double alpha) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> _z) Checks for independence between two nodes given a set of conditioning nodes.booleandetermines(List<Node> z, Node x) Determines if a given list of conditioning nodes (z) determines the value of a specific 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 alpha significance cutoff value.voidsetVerbose(boolean verbose) Sets whether verbose output should be printed.toString()Returns a string representation of this test.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence, determines, getDataSets, getSampleSize, getVariable, getVariableNames
- 
Constructor Details- 
IndTestFisherZFisherPValue
 
- 
- 
Method Details- 
indTestSubsetReturns an Independence test for a sublist of the variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Returns:
- The independence test for the sublist of variables.
 
- 
checkIndependenceChecks for independence between two nodes given a set of conditioning nodes.- Specified by:
- checkIndependencein interface- IndependenceTest
- Parameters:
- x- The first node.
- y- The second node.
- _z- The set of conditioning nodes.
- Returns:
- The result of the independence test.
- Throws:
- RuntimeException- If a singularity is encountered during the test.
- See Also:
 
- 
getAlphapublic double getAlpha()Gets the getModel significance level.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- this alpha.
 
- 
setAlphapublic void setAlpha(double alpha) Sets the alpha significance cutoff value.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- The alpha significance cutoff value.
- Throws:
- IllegalArgumentException- If the alpha value is out of range (0.0 to 1.0).
 
- 
getVariablesReturns 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 interface- IndependenceTest
- Returns:
- This list.
 
- 
determinesDetermines if a given list of conditioning nodes (z) determines the value of a specific node (x).- Parameters:
- z- The list of conditioning nodes.
- x- The specific node to determine.
- Returns:
- True if the list of conditioning nodes determines the specific node; False otherwise.
- Throws:
- UnsupportedOperationException- Always throws this exception.
 
- 
getDataReturns the concatenated data.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- This data
- See Also:
 
- 
getCovReturns the covariance matrix of the concatenated data.- Specified by:
- getCovin interface- IndependenceTest
- Returns:
- This covariance matrix.
 
- 
toStringReturns a string representation of this test.- Specified by:
- toStringin interface- IndependenceTest
- Overrides:
- toStringin class- Object
- Returns:
- This string.
 
- 
isVerbosepublic boolean isVerbose()Returns True if verbose output should be printed.- Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- True, if so.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets whether verbose output should be printed.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True if verbose output should be printed, False otherwise.
 
 
-