Package edu.cmu.tetrad.search.test
Class IndTestBlocksLemma10
java.lang.Object
edu.cmu.tetrad.search.test.IndTestBlocksLemma10
- All Implemented Interfaces:
- BlockTest,- IndependenceTest,- EffectiveSampleSizeSettable
@Deprecated(since="7.9",
            forRemoval=false)
public class IndTestBlocksLemma10
extends Object
implements IndependenceTest, BlockTest, EffectiveSampleSizeSettable
Deprecated.
Block-level CI test using Dong et al. (2024) Lemma 10:
 
C d-separates A and B iff rank( Σ_{AâªC, BâªC} ) = |C|
Finite-sample surrogate: use RankTests.estimateWilksRank(...) on (AâªC, BâªC). Decision can be EQ/LE/GE with integer tolerance 'tol'.
p-value is reported via RankTests.pValueIndepConditioned(S, AâªC, BâªC, â , n), so it is at least monotone with the same Wilks machinery you already use.
Thread-safe LRU caches (like IndTestBlocks).
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Equality mode for the Lemma-10 criterion.
- 
Constructor SummaryConstructorsConstructorDescriptionIndTestBlocksLemma10(BlockSpec blockSpec) Deprecated.Constructs an instance of IndTestBlocksLemma10 using the provided block specification.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> z) Deprecated.Checks the independence between two variables x and y given a conditioning set z.doublegetAlpha()Deprecated.Returns the significance level of the independence test.Deprecated.Retrieves theBlockSpecassociated with this block-based independence test.getData()Deprecated.Retrieves the data model associated with this test.intDeprecated.Returns the effective sample size.Deprecated.Retrieves the list of variables associated with this independence test.booleanDeprecated.Returns true if the test prints verbose output.voidsetAlpha(double alpha) Deprecated.Sets the significance level.voidsetEffectiveSampleSize(int nEff) Deprecated.Sets the effective sample size, or -1 if the actual sample size should be used.voidsetTolerance(int tol) Deprecated.Integer tolerance on equality (e.g., 1 to allow off-by-one).voidsetVerbose(boolean verbose) Deprecated.Sets whether this test will print verbose output.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.test.IndependenceTestcheckIndependence, determines, getCov, getDataSets, getSampleSize, getVariable, getVariableNames, indTestSubset, toString
- 
Constructor Details- 
IndTestBlocksLemma10Deprecated.Constructs an instance of IndTestBlocksLemma10 using the provided block specification. Performs initialization, validation of inputs, and precomputes necessary structures for block-based independence tests.- Parameters:
- blockSpec- The block specification containing details about variables, dataset, and block definitions. Must not be null.
- Throws:
- IllegalArgumentException- If blockSpec is null, if any variable or block in blockSpec is invalid, if there are duplicate variables, or if a block references a column outside the dataset dimensions.
 
 
- 
- 
Method Details- 
checkIndependenceDeprecated.Description copied from interface:IndependenceTestChecks the independence between two variables x and y given a conditioning set z.- 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.
 
- 
getVariablesDeprecated.Description copied from interface:IndependenceTestRetrieves the list of variables associated with this independence test.- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- A list of Nodeobjects representing the variables.
 
- 
getDataDeprecated.Description copied from interface:IndependenceTestRetrieves the data model associated with this test.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- A DataModelobject representing the data model.
 
- 
isVerbosepublic boolean isVerbose()Deprecated.Description copied from interface:IndependenceTestReturns true if the test prints verbose output.- Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- True if the case.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Deprecated.Description copied from interface:IndependenceTestSets whether this test will print verbose output.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True, if so.
 
- 
getAlphapublic double getAlpha()Deprecated.Description copied from interface:IndependenceTestReturns the significance level of the independence test.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- This level.
 
- 
setAlphapublic void setAlpha(double alpha) Deprecated.Description copied from interface:IndependenceTestSets the significance level.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- This level.
 
- 
setTolerancepublic void setTolerance(int tol) Deprecated.Integer tolerance on equality (e.g., 1 to allow off-by-one). Default 0.- Parameters:
- tol- The tolerance value.
 
- 
getBlockSpecDeprecated.Description copied from interface:BlockTestRetrieves theBlockSpecassociated with this block-based independence test.- Specified by:
- getBlockSpecin interface- BlockTest
- Returns:
- the BlockSpeccontaining the block configuration details for the test.
 
- 
getEffectiveSampleSizepublic int getEffectiveSampleSize()Deprecated.Description copied from interface:EffectiveSampleSizeSettableReturns the effective sample size.- Specified by:
- getEffectiveSampleSizein interface- EffectiveSampleSizeSettable
- Returns:
- the effective sample size
 
- 
setEffectiveSampleSizepublic void setEffectiveSampleSize(int nEff) Deprecated.Description copied from interface:EffectiveSampleSizeSettableSets the effective sample size, or -1 if the actual sample size should be used.- Specified by:
- setEffectiveSampleSizein interface- EffectiveSampleSizeSettable
- Parameters:
- nEff- the effective sample size
 
 
-