nimare.stats.nlogp_bonferroni

nlogp_bonferroni(nlogp)[source]

Perform Bonferroni correction on nlogp values.

Added in version 0.21.0.

The log-space counterpart of pymare.stats.bonferroni(). Multiplying by the number of tests is an addition in logs, so nothing underflows on the way through and a corrected p-value below the smallest representable double survives as its logarithm.

Parameters:

nlogp (numpy.ndarray) – Natural logarithms of the uncorrected p-values.

Returns:

Natural logarithms of the corrected p-values.

Return type:

numpy.ndarray