Class BasisExpandedGcm
- All Implemented Interfaces:
IndependenceWrapper, HasParameters, TetradSerializable, Serializable
Tests X _||_ Y | Z by residualizing the basis-expanded blocks of X and Y on the basis expansion of Z with ridge-stabilized OLS and referring the maximum studentized residual cross-covariance over the basis-pair grid to a Rademacher multiplier bootstrap null (Sidak bound if the number of multiplier samples is 0). Doubly robust in the GCM sense: the Z-regressions' complexity does not enter the null distribution, only the product of their errors. Heteroskedasticity-robust via self-normalization. Assumes independent rows.
The basis type is fixed to Legendre, matching BF-LRT. With adaptive basis selection enabled, uninformative higher-order basis columns are pruned by the BIC-crossing screen, controlling the grid size as the truncation limit grows.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the BasisExpandedGcm wrapper. -
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
-
BasisExpandedGcm
public BasisExpandedGcm()Initializes a new instance of the BasisExpandedGcm wrapper.
-
-
Method Details
-
getTest
Returns true iff x and y are independent conditional on z for the given data set.- 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.- Specified by:
getDescriptionin interfaceIndependenceWrapper- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceIndependenceWrapper- Returns:
- This type.
-
getParameters
Returns the parameters that this search uses.- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceIndependenceWrapper- Returns:
- A list of String names of parameters.
-