h_response_subgroups function

Helper functions for tabulating binary response by subgroup