dirconn.PCMCITestResult#
- class dirconn.PCMCITestResult(observed: Connectivity, pvalues: ndarray, lags: ndarray, null: str, limitations: tuple[str, ...], alpha: float)#
PCMCI’s own MCI p-values, as a test result that the correction code can use.
- observed#
The PCMCI result, with its provenance.
- Type:
- pvalues#
Shape
(source, target, 1, 1): the smallest MCI p-value over the lags times the number of lags, at most 1; NaN on the diagonal.- Type:
ndarray
- lags#
The lag (in samples) of every cell’s smallest p-value.
- Type:
ndarray
- null#
The null hypothesis.
- Type:
str
- limitations#
Ways the p-values can be wrong or misleading.
- Type:
tuple of str
- alpha#
Default level for
significant().- Type:
float
- __init__(observed: Connectivity, pvalues: ndarray, lags: ndarray, null: str, limitations: tuple[str, ...], alpha: float) None#
Methods
__init__(observed, pvalues, lags, null, ...)adjusted([method])Return the p-values adjusted over the family (see
adjust_pvalues()).significant([alpha, method])Return a boolean mask of the cells that survive correction.
Attributes