group_prop function

Combine variable proportions into groups