calculate_subsets_performance function

Internal function for calculating data for funnel plot