Temporal patterns of change in groups