dirconn.AsymptoticTestResult#
- class dirconn.AsymptoticTestResult(observed: Connectivity, pvalues: ndarray, statistic: ndarray, threshold: ndarray, df: ndarray, n_obs: int, null: str, limitations: tuple[str, ...], alpha: float)#
Per-frequency p-values and thresholds of PDC or rPDC, with the premise they rest on.
- observed#
The result that was tested, with its provenance.
- Type:
- pvalues, statistic, threshold
Shape
(source, target, freq, 1). The statistic isN |Abar_ij(f)|^2 / C_ij(f)(PDC) orN lambda(rPDC);thresholdis the value ofobservedthat a cell must exceed to be significant atalphawithout correction. Undefined cells (the diagonal) are NaN.- Type:
ndarray
- df#
Degrees of freedom of the chi-square distribution at every frequency.
- Type:
ndarray, shape (n_freqs,)
- n_obs#
N, the regression rows of the fit (the predicted samples of all trials).- Type:
int
- null#
The null hypothesis.
- Type:
str
- limitations#
Ways the p-values can be wrong or misleading.
- Type:
tuple of str
- alpha#
Level of
thresholdand default level forsignificant().- Type:
float
- __init__(observed: Connectivity, pvalues: ndarray, statistic: ndarray, threshold: ndarray, df: ndarray, n_obs: int, null: str, limitations: tuple[str, ...], alpha: float) None#
Methods
__init__(observed, pvalues, statistic, ...)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