Class IndTestRegression
java.lang.Object
edu.cmu.tetrad.search.test.IndTestRegression
- All Implemented Interfaces:
IndependenceTest
@Deprecated(since="7.9",
forRemoval=false)
public final class IndTestRegression
extends Object
implements IndependenceTest
Deprecated.
Checks independence of X _||_ Y | Z for variables X and Y and list Z of variables by regressing X on {Y} U Z and
testing whether the coefficient for Y is zero.
- Version:
- $Id: $Id
- Author:
- josephramsey, Frank Wimberly
-
Constructor Summary
ConstructorsConstructorDescriptionIndTestRegression(DataSet dataSet, double alpha) Deprecated.Constructs a new Independence test which checks independence facts based on the correlation matrix implied by the given data set (must be continuous). -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence(Node xVar, Node yVar, Set<Node> zList) Deprecated.Checks the independence between two variables, given a set of conditioning variables.booleandetermines(List<Node> zList, Node xVar) Deprecated.Determines if a variable xVar can be determined by a list of conditioning variables zList.doublegetAlpha()Deprecated.Gets the getModel significance level.getData()Deprecated.Returns the data used.Deprecated.Returns the list of variables associated with this object.indTestSubset(List<Node> vars) Deprecated.Performs an independence test for a sublist of variables.booleanDeprecated.Returns true if the test prints verbose output.voidsetAlpha(double alpha) Deprecated.Sets the significance level.voidsetVerbose(boolean verbose) Deprecated.Sets whether this test will print verbose output.toString()Deprecated.Returns a string representation of the Linear Regression Test object.Methods inherited from interface IndependenceTest
canBeSubsampled, checkIndependence, determines, getCov, getDataSets, getMissingValueSupport, getSampleSize, getVariable, getVariableNames, isPValueAProbability
-
Constructor Details
-
IndTestRegression
Deprecated.Constructs a new Independence test which checks independence facts based on the correlation matrix implied by the given data set (must be continuous). The given significance level is used.- Parameters:
dataSet- A data set containing only continuous columns.alpha- The alpha level of the test.
-
-
Method Details
-
indTestSubset
Deprecated.Performs an independence test for a sublist of variables.- Specified by:
indTestSubsetin interfaceIndependenceTest- Parameters:
vars- The sublist of variables.- Returns:
- The independence test result.
-
checkIndependence
Deprecated.Checks the independence between two variables, given a set of conditioning variables.- Specified by:
checkIndependencein interfaceIndependenceTest- Parameters:
xVar- The first variable to test for independence.yVar- The second variable to test for independence.zList- The set of conditioning variables.- Returns:
- An IndependenceResult object containing 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.- Specified by:
setAlphain interfaceIndependenceTest- Parameters:
alpha- This level.- Throws:
IllegalArgumentException- if alpha is not within the range [0, 1].
-
getVariables
Deprecated.Returns the list of variables associated with this object.- Specified by:
getVariablesin interfaceIndependenceTest- Returns:
- the list of variables
-
toString
Deprecated.Returns a string representation of the Linear Regression Test object.- Specified by:
toStringin interfaceIndependenceTest- Overrides:
toStringin classObject- Returns:
- the string representation of the Linear Regression Test object
-
determines
Deprecated.Determines if a variable xVar can be determined by a list of conditioning variables zList.- Parameters:
zList- The list of conditioning variables.xVar- The variable to test for determination.- Returns:
- True if xVar is determined by zList, false otherwise.
- Throws:
NullPointerException- if zList or any of its elements is null.
-
getData
Deprecated.Returns the data used.- Specified by:
getDatain interfaceIndependenceTest- Returns:
- the data used.
-
isVerbose
public boolean isVerbose()Deprecated.Returns true if the test prints verbose output.- Specified by:
isVerbosein interfaceIndependenceTest- Returns:
- a boolean
-
setVerbose
public void setVerbose(boolean verbose) Deprecated.Sets whether this test will print verbose output.- Specified by:
setVerbosein interfaceIndependenceTest- Parameters:
verbose- True, if verbose output should be printed.
-