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) booleandetermines(List z, Node x) doublegetAlpha()Gets the getModel significance level.getCov()Returns the covariance matrix.getData()Returns the datasets for this testdoubleint[]getRows()intReturns the sample size.indTestSubset(List<Node> vars) Returns an Independence test for a sublist of the variables.booleanReturns true if the test prints verbose output.voidsetAlpha(double alpha) Sets the significance level at which independence judgments should be made.voidsetFdr(boolean fdr) voidsetPercent(double percent) voidsetVerbose(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, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getVariable, getVariableNames
-
Constructor Details
-
IndTestFisherZPercentIndependent
-
-
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.
-
checkIndependence
- Specified by:
checkIndependencein interfaceIndependenceTest- Returns:
- an IndependenceResult (see).
- See Also:
-
getAlpha
public double getAlpha()Gets the getModel significance level.- Specified by:
getAlphain 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:
setAlphain interfaceIndependenceTest- Parameters:
alpha- This level.
-
getVariables
- Specified by:
getVariablesin 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:
getDatain interfaceIndependenceTest- Returns:
- The data model for the independence test, either a DataSet or a CovarianceMatrix.
- Throws:
UnsupportedOperationException- See Also:
-
getCov
Description copied from interface:IndependenceTestReturns the covariance matrix.- Specified by:
getCovin interfaceIndependenceTest- Returns:
- This matrix.
-
getDataSets
Description copied from interface:IndependenceTestReturns the datasets for this test- Specified by:
getDataSetsin interfaceIndependenceTest- Returns:
- these datasets.
-
getSampleSize
public int getSampleSize()Description copied from interface:IndependenceTestReturns the sample size.- Specified by:
getSampleSizein interfaceIndependenceTest- Returns:
- This size.
-
toString
Description copied from interface:IndependenceTestReturns a string representation of this test.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin 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:IndependenceTestReturns true if the test prints verbose output.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- True if the case.
-
setVerbose
public void setVerbose(boolean verbose) Description copied from interface:IndependenceTestSets whether this test will print verbose output.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True, if so.
-