Practical Computing Exercise for Week 7: Insurance Claims

Download the template R markdown file for this workshop.

Aims of this practical exercise

In this exercise you will:

The Exercise

Investigate the car insurance claims data, used by McCullagh & Nelder (1989). Obtain the data using:

Your task is to model the average claims (AveClaim) for damage to an owner’s car on the basis of the policy holder’s age group (AgeGroup 1-8), the vehicle age group (VehicleAge 1-4), and the car group (CarGroup 1-4). Be sure you check if any of the two-way interactions are significant.

Hint use glm with family=Gamma() and link="inverse"

Solutions

You should compare your work with the solutions for this workshop.