Simpson’s paradox (pooling groups)
Can a relationship flip when groups are pooled? Yes. The overall picture can hide or reverse what each group shows (Simpson’s paradox, also for the correlation r). Reason: the groups differ in the measures or in make-up.
Example: A helps more than B in mild and in severe cases. But A goes almost only to severe cases. Overall, A looks worse.
Caution: The total cannot then be read directly. Which view applies depends on the situation.