Class IndTestFisherZPercentIndependent
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestFisherZPercentIndependent
- All Implemented Interfaces:
IndependenceTest
Calculates independence from pooled residuals.
- Author:
- josephramsey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence
(Node x, Node y, Set<Node> _z) boolean
determines
(List z, Node x) double
getAlpha()
Gets the getModel significance level.getCov()
Returns the covariance matrix.getData()
Returns the datasets for this testdouble
int[]
getRows()
int
Returns the sample size.indTestSubset
(List<Node> vars) Returns an Independence test for a sublist of the variables.boolean
Returns true if the test prints verbose output.void
setAlpha
(double alpha) Sets the significance level at which independence judgments should be made.void
setFdr
(boolean fdr) void
setPercent
(double percent) void
setVerbose
(boolean verbose) Sets whether this test will print verbose output.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, getVariable, getVariableNames
-
Constructor Details
-
IndTestFisherZPercentIndependent
-
-
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.
-
checkIndependence
- Specified by:
checkIndependence
in interfaceIndependenceTest
- Returns:
- an IndependenceResult (see).
- 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
-
getData
- Specified by:
getData
in interfaceIndependenceTest
- Returns:
- The data model for the independence test, either a DataSet or a CovarianceMatrix.
- Throws:
UnsupportedOperationException
- See Also:
-
getCov
Description copied from interface:IndependenceTest
Returns the covariance matrix.- Specified by:
getCov
in interfaceIndependenceTest
- Returns:
- This matrix.
-
getDataSets
Description copied from interface:IndependenceTest
Returns the datasets for this test- Specified by:
getDataSets
in interfaceIndependenceTest
- Returns:
- these datasets.
-
getSampleSize
public int getSampleSize()Description copied from interface:IndependenceTest
Returns the sample size.- Specified by:
getSampleSize
in interfaceIndependenceTest
- Returns:
- This size.
-
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.
-
getRows
public int[] getRows() -
getPercent
public double getPercent() -
setPercent
public void setPercent(double percent) -
setFdr
public void setFdr(boolean fdr) -
isVerbose
public boolean isVerbose()Description copied from interface:IndependenceTest
Returns true if the test prints verbose output.- Specified by:
isVerbose
in interfaceIndependenceTest
- Returns:
- True if the case.
-
setVerbose
public void setVerbose(boolean verbose) Description copied from interface:IndependenceTest
Sets whether this test will print verbose output.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- True, if so.
-