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 SummaryConstructorsConstructorDescriptionIndTestFisherZConcatenateResiduals(List<DataSet> dataSets, double alpha) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> _z) Determines whether x _||_ y | z.booleandetermines(List<Node> z, Node x) Determines whether the z nodes determine the x node.doublegetAlpha()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.booleanReturn True if verbose output should be printed.voidsetAlpha(double alpha) Sets the alpha significance cutoff value.voidsetVerbose(boolean verbose) Sets the verbose output flag.toString()Returns a string representation of the object.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- 
IndTestFisherZConcatenateResidualsConstructor.- Parameters:
- dataSets- The continuous datasets to analyze.
- alpha- The alpha significance cutoff value.
 
 
- 
- 
Method Details- 
indTestSubsetReturns an Independence test for a sublist of the variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Returns:
- an instance of IndependenceTest.
 
- 
checkIndependenceDetermines whether x _||_ y | z.- Specified by:
- checkIndependencein interface- IndependenceTest
- Parameters:
- x- a- Nodeobject
- y- a- Nodeobject
- _z- a- Setobject
- Returns:
- a IndependenceResultobject
- See Also:
 
- 
getAlphapublic double getAlpha()This method returns the alpha significance cutoff value used in the independence test.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- the alpha significance cutoff value
 
- 
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 outside the range [0, 1]
 
- 
getVariablesReturns the list of variables used in this method.- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- The list of variables.
 
- 
determinesDetermines 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.
 
- 
getDataReturns the concatenated data.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- This data
- See Also:
 
- 
getCovReturns the covariance matrix for the data sets.- Specified by:
- getCovin interface- IndependenceTest
- Returns:
- The covariance matrix of the standardized data sets.
 
- 
toStringReturns a string representation of the object.- Specified by:
- toStringin interface- IndependenceTest
- Overrides:
- toStringin class- Object
- Returns:
- A string representing the object.
 
- 
isVerbosepublic boolean isVerbose()Return True if verbose output should be printed.- Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- True, if so.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets the verbose output flag.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- Whether verbose output should be printed or not.
 
 
-