Class IndTestFisherZPercentIndependent
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestFisherZPercentIndependent
- All Implemented Interfaces:
IndependenceTest
@Deprecated(since="7.9",
forRemoval=false)
public final class IndTestFisherZPercentIndependent
extends Object
implements IndependenceTest
Deprecated.
Calculates independence from pooled residuals.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestFisherZPercentIndependent(List<DataSet> dataSets, double alpha) Deprecated.Initializes an object of the class IndTestFisherZPercentIndependent. -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> _z) Deprecated.Checks the independence between two nodes x and y given a set of conditioning nodes z.booleandetermines(List z, Node x) Deprecated.Determines the independence between a list of conditioning variables (z) and a target variable (x).doublegetAlpha()Deprecated.Gets the getModel significance level.getCov()Deprecated.Retrieves the covariance matrix.getData()Deprecated.Retrieves the data set from the method.Deprecated.Retrieves the list of data sets.doubleDeprecated.Returns the percentage value.int[]getRows()Deprecated.Retrieves the array of row indices.intDeprecated.Retrieves the sample size of the data set.Deprecated.Getter for the fieldvariables.indTestSubset(List<Node> vars) Deprecated.Performs an independence test on a subset of variables.booleanDeprecated.Returns the value of the verbose flag.voidsetAlpha(double alpha) Deprecated.Sets the significance level for the independence test.voidsetFdr(boolean fdr) Deprecated.Sets the value of the fdr field.voidsetPercent(double percent) Deprecated.Sets the percentage value.voidsetVerbose(boolean verbose) Deprecated.Sets the verbose flag.toString()Deprecated.Returns a string representation of this object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.test.IndependenceTest
checkIndependence, determines, getVariable, getVariableNames
-
Constructor Details
-
IndTestFisherZPercentIndependent
Deprecated.Initializes an object of the class IndTestFisherZPercentIndependent.- Parameters:
dataSets- The list of data sets to be used for the independence test.alpha- The significance level for the independence test. Must be between 0.0 and 1.0 (inclusive).- Throws:
IllegalArgumentException- If alpha is not within the valid range.
-
-
Method Details
-
indTestSubset
Deprecated.Performs an independence test on a subset of variables.- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables to test for independence.- Returns:
- The result of the independence test.
-
checkIndependence
Deprecated.Checks the independence between two nodes x and y given a set of conditioning nodes z.- Specified by:
checkIndependencein interfaceIndependenceTest- Parameters:
x- The first node.y- The second node._z- The set of conditioning nodes.- Returns:
- The result of the independence test.
-
getAlpha
public double getAlpha()Deprecated.Gets the getModel significance level.- Specified by:
getAlphain interfaceIndependenceTest- Returns:
- a double
-
setAlpha
public void setAlpha(double alpha) Deprecated.Sets the significance level for the independence test.- Specified by:
setAlphain interfaceIndependenceTest- Parameters:
alpha- The significance level to set. Must be between 0.0 and 1.0 (inclusive).- Throws:
IllegalArgumentException- if alpha is not within the valid range.
-
getVariables
Deprecated.Getter for the field
variables.- 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
Deprecated.Determines the independence between a list of conditioning variables (z) and a target variable (x).- Parameters:
z- The list of conditioning variables.x- The target variable.- Returns:
- True if the target variable is independent of the conditioning variables, otherwise False.
- Throws:
UnsupportedOperationException- if the operation is not supported.
-
getData
Deprecated.Retrieves the data set from the method.- Specified by:
getDatain interfaceIndependenceTest- Returns:
- The data set obtained.
-
getCov
Deprecated.Retrieves the covariance matrix.- Specified by:
getCovin interfaceIndependenceTest- Returns:
- The covariance matrix.
-
getDataSets
Deprecated.Retrieves the list of data sets.- Specified by:
getDataSetsin interfaceIndependenceTest- Returns:
- The list of data sets.
-
getSampleSize
public int getSampleSize()Deprecated.Retrieves the sample size of the data set.- Specified by:
getSampleSizein interfaceIndependenceTest- Returns:
- The sample size of the data set.
-
toString
Deprecated.Returns a string representation of this object.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- The string representation of this object.
-
getRows
public int[] getRows()Deprecated.Retrieves the array of row indices.- Returns:
- The array of row indices represented by an int array.
-
getPercent
public double getPercent()Deprecated.Returns the percentage value.- Returns:
- The percentage value.
-
setPercent
public void setPercent(double percent) Deprecated.Sets the percentage value.- Parameters:
percent- The percentage value to set. Must be between 0.0 and 1.0 (inclusive).- Throws:
IllegalArgumentException- if percent is not within the valid range.
-
setFdr
public void setFdr(boolean fdr) Deprecated.Sets the value of the fdr field.- Parameters:
fdr- The new value of the fdr field.
-
isVerbose
public boolean isVerbose()Deprecated.Returns the value of the verbose flag.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- True if verbose mode is enabled, False otherwise.
-
setVerbose
public void setVerbose(boolean verbose) Deprecated.Sets the verbose flag.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True if verbose mode is enabled, False otherwise.
-