Ejemplo n.º 1
0
def test_MKDAChi2_fdr(testdata_cbma):
    """Smoke test for MKDAChi2."""
    meta = MKDAChi2()
    res = meta.fit(testdata_cbma, testdata_cbma)
    corr = FDRCorrector(method="indep", alpha=0.001)
    cres = corr.transform(res)
    assert isinstance(res, nimare.results.MetaResult)
    assert isinstance(cres, nimare.results.MetaResult)

    methods = FDRCorrector.inspect(res)
    assert methods == ["indep", "negcorr"]
Ejemplo n.º 2
0
        figure=fig,
        axes=axes[i_ax],
    )
    axes[i_ax].set_title(title)

from nimare.correct import FDRCorrector

###############################################################################
# Multiple comparisons correction in image-based meta-analyses
# -----------------------------------------------------------------------------
from nimare.meta.ibma import Stouffers

meta = Stouffers(resample=True)
results = meta.fit(dset)
print(FWECorrector.inspect(results))
print(FDRCorrector.inspect(results))

###############################################################################
# Note that the FWECorrector does not support a "montecarlo" method for the
# Stouffers Estimator.
# This is because NiMARE does not have a Monte Carlo-based method implemented
# for most IBMA algorithms.

###############################################################################
# Apply the Corrector to the MetaResult
# =============================================================================
corr = FDRCorrector(method="indep", alpha=0.05)
cres = corr.transform(results)

###############################################################################
# Show corrected results