Package edu.cmu.tetrad.search.test
Class IndTestDegenerateGaussianLrt
java.lang.Object
edu.cmu.tetrad.search.test.IndTestDegenerateGaussianLrt
- All Implemented Interfaces:
- IndependenceTest
Implements a degenerate Gaussian score as a LRT. The reference is here:
Andrews, B., Ramsey, J., invalid input: '&' 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.
- Author:
- Bryan Andrews
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classStores a return value for a likelihood--i.e., a likelihood value and the degrees of freedom for it.
- 
Constructor SummaryConstructorsConstructorDescriptionIndTestDegenerateGaussianLrt(DataSet dataSet) Constructs the score using a covariance matrix.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, List<Node> z) Returns an independence result specifying whether x _||_ y | Z and what its p-value are.booleandetermines(List<Node> z, Node y) Returns true if y is determined the variable in z.doublegetAlpha()Returns the significance level of the independence test.getData()Returns 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 tis test.doublegetScore()Returns a value that more positive for stronger dependence and positive only if dependence holds.Returns the list of searchVariables over which this independence checker is capable of determinining independence relations.indTestSubset(List<Node> vars) Returns an Independence test for a sublist of the variables.booleanReturns true iff verbose output should be printed.voidsetAlpha(double alpha) Sets the significance level.voidsetVerbose(boolean verbose) Sets whether verbose output should be printed.toString()Returns a string representation of this test.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.test.IndependenceTestcheckIndependence, getCov, getDataSets, getSampleSize, getVariable, getVariableNames
- 
Constructor Details- 
IndTestDegenerateGaussianLrtConstructs the score using a covariance matrix.- Parameters:
- dataSet- The data being analyzed.
 
 
- 
- 
Method Details- 
indTestSubsetDescription copied from interface:IndependenceTestReturns an Independence test for a sublist of the variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Throws:
- UnsupportedOperationException- This method is not implemented.
 
- 
checkIndependenceReturns an independence result specifying whether x _||_ y | Z and what its p-value are.- Specified by:
- checkIndependencein interface- IndependenceTest
- Returns:
- This result
- See Also:
 
- 
getPValuepublic double getPValue()Returns the probability associated with the most recently executed independence test, of Double.NaN if p value is not meaningful for tis test.- Returns:
- This p-value.
 
- 
getVariablesReturns the list of searchVariables over which this independence checker is capable of determinining independence relations.- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- This list.
 
- 
determinesReturns true if y is determined the variable in z.- Specified by:
- determinesin interface- IndependenceTest
- Returns:
- True if so.
 
- 
getAlphapublic double getAlpha()Returns the significance level of the independence test.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- this level.
 
- 
setAlphapublic void setAlpha(double alpha) Sets the significance level.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- This level.
 
- 
getDataReturns the dataset being analyzed.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- This data.
- See Also:
 
- 
getScorepublic double getScore()Returns a value that more positive for stronger dependence and positive only if dependence holds.- Specified by:
- getScorein interface- IndependenceTest
- Returns:
- This value.
- See Also:
 
- 
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 so.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets whether verbose output should be printed.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True if so.
 
 
-