aggregate_samples function

Aggregate samples by non-age group