h_survival_duration_subgroups function

Helper functions for tabulating survival duration by subgroup