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., invalid input: '&' Eberhardt, F. (2014). Learning causal structure from multiple datasets with similar variable sets. Behaviormetrika, 41(1), 41-64.
- Author:
- robertillman, josephramsey
- 
Constructor SummaryConstructorsConstructorDescriptionIndTestFisherZFisherPValue(List<DataSet> dataSets, double alpha) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, List<Node> z) Determines whether variable x is independent of variable y given a list of conditioning variables z.booleandetermines(List<Node> z, Node x) Returns true if y is determined the variable in z.doublegetAlpha()Gets the getModel significance level.getCov()Returns the covariance matrix of the concatenated data.getData()Returns the concatenated data.doubleReturns the probability associated with the most recently computed independence test.doublegetScore()Returns a number that is positive when dependence holds and more positive for greater dependence.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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.test.IndependenceTestcheckIndependence, getDataSets, getSampleSize, getVariable, getVariableNames
- 
Constructor Details- 
IndTestFisherZFisherPValueConstructor.- Parameters:
- dataSets- The continuous datasets to analyze.
- alpha- The alpha significance cutoff value.
 
 
- 
- 
Method Details- 
indTestSubsetDescription copied from interface:IndependenceTestReturns an Independence test for a sublist of the variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Throws:
- UnsupportedOperationException- Not implemented.
 
- 
checkIndependenceDetermines whether variable x is independent of variable y given a list of conditioning variables z.- Specified by:
- checkIndependencein interface- IndependenceTest
- 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:
 
- 
getPValuepublic double getPValue()Returns the probability associated with the most recently computed independence test.- Returns:
- This p-value.
 
- 
setAlphapublic 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 interface- IndependenceTest
- Parameters:
- alpha- This level.
- This- alpha.
 
- 
getAlphapublic double getAlpha()Gets the getModel significance level.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- this alpha.
 
- 
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.
 
- 
determinesDescription copied from interface:IndependenceTestReturns true if y is determined the variable in z.- Specified by:
- determinesin interface- IndependenceTest
- Returns:
- True if so.
- Throws:
- UnsupportedOperationException- Not implemented.
 
- 
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.
 
- 
getScorepublic double getScore()Returns a number that is positive when dependence holds and more positive for greater dependence.- Specified by:
- getScorein interface- IndependenceTest
- Returns:
- This number
- See Also:
 
- 
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 is printed.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True if so.
 
 
-