Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

8.12.10. nilearn.glm.compute_fixed_effects

nilearn.glm.compute_fixed_effects(contrast_imgs, variance_imgs, mask=None, precision_weighted=False)

Compute the fixed effects, given images of effects and variance

Parameters:

contrast_imgs: list of Nifti1Images or strings

the input contrast images

variance_imgs: list of Nifti1Images or strings

the input variance images

mask: Nifti1Image or NiftiMasker instance or None, optional,

mask image. If None, it is recomputed from contrast_imgs

precision_weighted: Bool, optional,

Whether fixed effects estimates should be weighted by inverse variance or not. Defaults to False.

Returns:

fixed_fx_contrast_img: Nifti1Image,

the fixed effects contrast computed within the mask

fixed_fx_variance_img: Nifti1Image,

the fixed effects variance computed within the mask

fixed_fx_t_img: Nifti1Image,

the fixed effects t-test computed within the mask

8.12.10.1. Examples using nilearn.glm.compute_fixed_effects