Ratios with multiple groups