Package edu.cmu.tetrad.search.test
Class IndTestDegenerateGaussianLrt
java.lang.Object
edu.cmu.tetrad.search.test.IndTestDegenerateGaussianLrt
- All Implemented Interfaces:
- IndependenceTest
Implements degenerate Gaussian test as a likelihood ratio test. The reference is here:
 
Andrews, B., Ramsey, J., & Cooper, G. F. (2019, July). Learning high-dimensional directed acyclic graphs with mixed data-types. In The 2019 ACM SIGKDD Workshop on Causal Discovery (pp. 4-21). PMLR.
- Version:
- $Id: $Id
- Author:
- Bryan Andrews, Joseph Ramsey refactoring 2024-12-26
- 
Constructor SummaryConstructorsConstructorDescriptionIndTestDegenerateGaussianLrt(DataSet dataSet) Constructs the test using the given (mixed) data set.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> z) Tests for the conditional independence of two nodes given a set of conditioning nodes.doublegetAlpha()Returns the significance level of the independence test.getData()Returns a copy of the dataset being analyzed.doubleReturns the probability associated with the most recently executed independence test, of Double.NaN if p value is not meaningful for this test.Returns the list of variables over which this independence checker is capable of determinining independence relations.indTestSubset(List<Node> vars) Subsets the variables used in the independence test.booleanReturns true iff verbose output should be printed.voidsetAlpha(double alpha) Sets the significance level.voidsetLambda(double lambda) Sets the lambda value for the test.voidsetVerbose(boolean verbose) Sets whether verbose output should be printed.toString()Returns a string representation of this test.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence, determines, getCov, getDataSets, getSampleSize, getVariable, getVariableNames
- 
Constructor Details- 
IndTestDegenerateGaussianLrtConstructs the test using the given (mixed) data set.- Parameters:
- dataSet- The data being analyzed.
 
 
- 
- 
Method Details- 
indTestSubsetSubsets the variables used in the independence test.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Returns:
- The IndependenceTest object with subset of variables.
- Throws:
- UnsupportedOperationException- if the method is not implemented.
 
- 
checkIndependenceTests for the conditional independence of two nodes given a set of conditioning nodes.- Specified by:
- checkIndependencein interface- IndependenceTest
- Parameters:
- x- The first variable to test, represented as a Node object.
- y- The second variable to test, represented as a Node object.
- z- The set of conditioning variables, represented as a Set of Node objects.
- Returns:
- An IndependenceResult object representing the outcome of the independence test.
 
- 
getPValuepublic double getPValue()Returns the probability associated with the most recently executed independence test, of Double.NaN if p value is not meaningful for this test.- Returns:
- This p-value.
 
- 
getVariablesReturns the list of variables over which this independence checker is capable of determinining independence relations.- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- This list.
 
- 
getAlphapublic double getAlpha()Returns the significance level of the independence test.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- this level, default 0.01.
 
- 
setAlphapublic void setAlpha(double alpha) Sets the significance level.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- This level.
 
- 
getDataReturns a copy of the dataset being analyzed.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- This data.
 
- 
toStringReturns a string representation of this test.- Specified by:
- toStringin interface- IndependenceTest
- Overrides:
- toStringin class- Object
- Returns:
- This string.
 
- 
isVerbosepublic boolean isVerbose()Returns true iff verbose output should be printed.- Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- True if the case.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets whether verbose output should be printed.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True, if so.
 
- 
setLambdapublic void setLambda(double lambda) Sets the lambda value for the test.- Parameters:
- lambda- The singularity lambda parameter to be used in the independence test.
 
 
-