nimare.meta.esma.weighted_stouffers¶
-
weighted_stouffers(z_maps, sample_sizes, two_sided=True)[source]¶ Run a Stouffer’s image-based meta-analysis on z-statistic maps.
- Parameters
z_maps ((n_contrasts, n_voxels)
numpy.ndarray) – A 2D array of z-statistic maps in the same space, after masking.sample_sizes ((n_contrasts,)
numpy.ndarray) – A 1D array of sample sizes associated with contrasts inz_maps. Must be in same order as rows inz_maps.two_sided (
bool, optional) – Whether to do a two- or one-sided test. Default is True.
- Returns
result (
dict) – Dictionary containing maps for test statistics, p-values, and negative log(p) values.
References
Zaykin, D. V. (2011). Optimally weighted Z‐test is a powerful method for combining probabilities in meta‐analysis. Journal of evolutionary biology, 24(8), 1836-1841. https://doi.org/10.1111/j.1420-9101.2011.02297.x