mosaicperm.core.combine_mosaic_tests

mosaicperm.core.combine_mosaic_tests(mosaic_objects: list[MosaicPermutationTest], how_combine_pvals='median')[source]

Combines results across MosaicPermutationTest objects.

Parameters:
mosaic_objectslist

List of objects inheriting from MosaicPermutationTest, after calling .fit() for each object.

how_combine_pvalsstr

How to combine the p-values. One of several options:

  • ‘median’ : twice the median

  • ‘mean’ : twice the mean

  • ‘min’ : len(mosaic_objects) times the minimum (Bonferroni correction).

Returns:
summarypd.Series

Series of key inferential results.

Notes

This function combines results when using the same set of test statistics and different tilings. To combine results using the same tiling and different test statistics, just use a vector-valued test statistic.