Semiparametric Regression Analysis of Grouped Data