nimare.stats.two_way_counts

two_way_counts(selected, unselected, n_selected, n_unselected)[source]

Two-way chi-square test from paired study-count vectors.

Parameters:
  • selected ((N,) array_like) – Per-voxel active-study counts for the two groups.

  • unselected ((N,) array_like) – Per-voxel active-study counts for the two groups.

  • n_selected (int) – Number of studies in each group.

  • n_unselected (int) – Number of studies in each group.

Returns:

chi_sq – Chi-square values, one per voxel.

Return type:

numpy.ndarray