Class TRffLrTest
java.lang.Object
edu.cmu.tetrad.algcomparison.independence.TRffLrTest
- All Implemented Interfaces:
IndependenceWrapper, HasParameters, TetradSerializable, Serializable
@TestOfIndependence(name="TRFF-LR-Test",
command="trff-lr-test",
dataType=Mixed)
@Mixed
@General
public final class TRffLrTest
extends Object
implements IndependenceWrapper
Wrapper for the TRFF likelihood-ratio CI test built on
TRffBicScore.
Tests X ⊥ Y | Z by comparing nested local fits on a common row subset: reduced child ~ Z versus full child ~ Z + extra(X), using an LR statistic with a ΔEDF-based df approximation. The reduced model's design columns are a prefix of the full model's, so the models are nested by construction and the LR statistic is nonnegative. The test is symmetrized: both directions (child Y, added X) and (child X, added Y) are computed and the more conservative p-value is reported.
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequired no-arg ctor for algcomparison discovery/serialization. -
Method Summary
Modifier and TypeMethodDescriptionReturns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short of this independence test.Returns the parameters that this search uses.getTest(DataModel dataSet, Parameters parameters) Returns true iff x and y are independent conditional on z for the given data set.
-
Constructor Details
-
TRffLrTest
public TRffLrTest()Required no-arg ctor for algcomparison discovery/serialization.
-
-
Method Details
-
getTest
Returns true iff x and y are independent conditional on z for the given data set.Returns a TRFF LR test.
- Specified by:
getTestin interfaceIndependenceWrapper- Parameters:
dataSet- The data set to test independence against.parameters- The paramters of the test.- Returns:
- True iff independence holds.
-
getDescription
Returns a short of this independence test.Returns the name of the test.
- Specified by:
getDescriptionin interfaceIndependenceWrapper- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns the data type of the test, which is mixed.
- Specified by:
getDataTypein interfaceIndependenceWrapper- Returns:
- This type.
- See Also:
-
getParameters
Returns the parameters that this search uses.Returns the parameters of the test.
- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceIndependenceWrapper- Returns:
- A list of String names of parameters.
-