The original data was taken from 8942 insurance claims.
The 128 rows of the
claims
data frame represent all possible
combinations of the 3 predictor variables (columns)
age
,
car.age
,
and
type
. An additional variable,
number
gives the number of
claims in each cell.
The outcome variable,
cost
is the average cost of the claims.
A
,
B
,
C
or
D
.
NA
.
0
.
Baxter, L. A., Coutts, S. M., and Ross, G. A. F. (1980)
Applications of Linear Models in Motor
Insurance. Proceedings of the 21st International Congress of Actuaries,
Zurich, pp. 11--29.
John M. Chambers and Trevor J. Hastie, (1992) Statistical Models in S,
Wadsworth and Brooks, Pacific Grove, CA, pp. 111--112.
claims.fit <- lm(cost ~ age + type + car.age, data = claims, weights = number, na.action = na.omit)