nimare.stats
.one_way
- one_way(data, n)[source]
One-way chi-square test of independence.
Takes a 1D array as input and compares activation at each voxel to proportion expected under a uniform distribution throughout the array. Note that if you’re testing activation with this, make sure that only valid voxels (e.g., in-mask gray matter voxels) are included in the array, or results won’t make any sense!
- Parameters:
data (1D array_like) – Counts across voxels.
n (
int
) – Maximum possible count (aka total number of units) for all cells indata
. If data is n_voxels long, thenn
is the number of studies in the analysis.
- Returns:
chi2 – Chi-square values
- Return type:
Notes
Taken from Neurosynth.