Learn R Programming

actuar (version 1.2-2)

mean.grouped.data: Arithmetic Mean

Description

Mean of grouped data objects.

Usage

"mean"(x, ...)

Arguments

x
an object of class "grouped.data".
...
further arguments passed to or from other methods.

Value

A named vector of means.

Details

The mean of grouped data with group boundaries $c[1], \dots, c[r]$ and group frequencies $n[1], \dots, n[r]$ is $$\sum_{j = 1}^r \frac{c_{j - 1} + c_j}{2}\, n_j.$$

References

Klugman, S. A., Panjer, H. H. and Willmot, G. E. (1998), Loss Models, From Data to Decisions, Wiley.

See Also

grouped.data to create grouped data objects; emm to compute higher moments.

Examples

Run this code
data(gdental)
mean(gdental)

Run the code above in your browser using DataLab