aggregate_cov function

Aggregate covariates