Semiparametric Analysis with Grouped Dependent Variables and Application to Physicians’ Provision of Charity Care