Class IndTestFisherZPercentIndependent
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestFisherZPercentIndependent
- All Implemented Interfaces:
IndependenceTest
Calculates independence from pooled residuals.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestFisherZPercentIndependent
(List<DataSet> dataSets, double alpha) Constructor for IndTestFisherZPercentIndependent. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence
(Node x, Node y, Set<Node> _z) checkIndependence.boolean
determines
(List z, Node x) double
getAlpha()
Gets the getModel significance level.getCov()
getCov.getData()
Getter for the fielddata
.Returns the datasets for this testdouble
Getter for the fieldpercent
.int[]
getRows()
Getter for the fieldrows
.int
Returns the sample size.Getter for the fieldvariables
.indTestSubset
(List<Node> vars) Returns an Independence test for a sublist of the variables.boolean
isVerbose.void
setAlpha
(double alpha) Sets the significance level.void
setFdr
(boolean fdr) Setter for the fieldfdr
.void
setPercent
(double percent) Setter for the fieldpercent
.void
setVerbose
(boolean verbose) Sets whether this test will print verbose output.toString()
toString.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getVariable, getVariableNames
-
Constructor Details
-
IndTestFisherZPercentIndependent
Constructor for IndTestFisherZPercentIndependent.
- Parameters:
dataSets
- aList
objectalpha
- a double
-
-
Method Details
-
indTestSubset
Returns an Independence test for a sublist of the variables.- Specified by:
indTestSubset
in interfaceIndependenceTest
- Parameters:
vars
- The sublist of variables.- Returns:
- a
IndependenceTest
object
-
checkIndependence
checkIndependence.
- Specified by:
checkIndependence
in interfaceIndependenceTest
- Parameters:
x
- aNode
objecty
- aNode
object_z
- aSet
object- Returns:
- a
IndependenceResult
object - See Also:
-
getAlpha
public double getAlpha()Gets the getModel significance level.- Specified by:
getAlpha
in interfaceIndependenceTest
- Returns:
- a double
-
setAlpha
public void setAlpha(double alpha) Sets the significance level.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
Getter for the field
variables
.- 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
Getter for the field
data
.- Specified by:
getData
in interfaceIndependenceTest
- Returns:
- a
DataSet
object - Throws:
UnsupportedOperationException
- if any.- See Also:
-
getCov
getCov.
- Specified by:
getCov
in interfaceIndependenceTest
- Returns:
- a
ICovarianceMatrix
object
-
getDataSets
Returns the datasets for this test- Specified by:
getDataSets
in interfaceIndependenceTest
- Returns:
- these datasets.
-
getSampleSize
public int getSampleSize()Returns the sample size.- Specified by:
getSampleSize
in interfaceIndependenceTest
- Returns:
- This size.
-
toString
toString.
- Specified by:
toString
in interfaceIndependenceTest
- Overrides:
toString
in classObject
- Returns:
- a string representation of this test.
-
getRows
public int[] getRows()Getter for the field
rows
.- Returns:
- an array of
invalid reference
int
-
getPercent
public double getPercent()Getter for the field
percent
.- Returns:
- a double
-
setPercent
public void setPercent(double percent) Setter for the field
percent
.- Parameters:
percent
- a double
-
setFdr
public void setFdr(boolean fdr) Setter for the field
fdr
.- Parameters:
fdr
- a boolean
-
isVerbose
public boolean isVerbose()isVerbose.
- Specified by:
isVerbose
in interfaceIndependenceTest
- Returns:
- a boolean
-
setVerbose
public void setVerbose(boolean verbose) Sets whether this test will print verbose output.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- True, if so.
-