nimare.meta.cbma.weights.normalize_weights

normalize_weights(raw_weights, n_studies)[source]

Rescale relative weights so they sum to n_studies.

With uniform inputs every weight is exactly 1.0, so an unweighted analysis is untouched and the statistic stays the count of activating contrasts. Dividing the result by n_studies recovers the weighted proportion of Wager et al.[1].

References

Examples using nimare.meta.cbma.weights.normalize_weights

Sample-size weighting in MKDA

Sample-size weighting in MKDA