mosaicperm.core.compute_adaptive_pval¶
- mosaicperm.core.compute_adaptive_pval(statistic: array, null_statistics: array) tuple[source]¶
Computes an adaptive p-value based on one or more test statistics.
- Parameters:
- statisticfloat or np.array
Either a float (one statistic) or 1D array (many test statistics).
- null_statisticsnp.array
(
nrand,d)-shaped array of null statistics computed based on null permutations, wheredis the dimension ofstatistic.
- Returns:
- pvalfloat
The adaptive p-value.
- adapt_statisticfloat
The adaptive statistic value.
- null_adapt_statisticsnp.array
nrand-shaped array of null adaptive statistic values.