combine_groups function

Reference and treatment group combination