Dear R-users, The data that I want to treat refer to claims and a glm have been adjusted to the it. Now there are some calculations that I want to do with the residuals and estimations from the model. The glm model has variables that refer to the fleet to wich the vehicle refers to and variables that refer to the vehicle (CC, type of vehicle, weight, etc). In that sense I need to calculate sums, like the ones that I attached again. I am following the paper:* "Experience Rating Schemes for Fleets of Vehicles" from Denise Desjardins, Georges Dionne and Jean Pinquet * Thanks Pedro -------------- next part -------------- A non-text attachment was scrubbed... Name: sums[1].pdf Type: application/pdf Size: 10531 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/20070506/b7d38a68/attachment.pdf