nimare.meta.esma.rfx_glm

rfx_glm(con_maps, null='theoretical', n_iters=None, two_sided=True)[source]

Run a random-effects (RFX) GLM on contrast maps.

Parameters
  • con_maps ((n_contrasts, n_voxels) numpy.ndarray) – A 2D array of contrast maps in the same space, after masking.

  • null ({‘theoretical’, ‘empirical’}, optional) – Whether to use a theoretical null T distribution or an empirically- derived null distribution determined via sign flipping. Default is ‘theoretical’.

  • n_iters (int or None, optional) – The number of iterations to run in estimating the null distribution. Only used if null = 'empirical'.

  • two_sided (bool, optional) – Whether to do a two- or one-sided test. Default is True.

Returns

result (dict) – Dictionary object containing maps for test statistics, p-values, and negative log(p) values.