mean.grouped.data: Arithmetic Mean

View source: R/mean.grouped.data.R

mean.grouped.dataR Documentation

Arithmetic Mean

Description

Mean of grouped data objects.

Usage

## S3 method for class 'grouped.data'
mean(x, ...)

Arguments

x

an object of class "grouped.data".

...

further arguments passed to or from other methods.

Details

The mean of grouped data with group boundaries c[0], c[1], …, c[r] and group frequencies n[1], …, n[r] is

(1/n) * sum(j; a[j] * n[j]),

where a[j] = (c[j - 1] + c[j])/2 is the midpoint of the jth interval, and n = sum(j; n[j]).

Value

A named vector of means.

Author(s)

Vincent Goulet vincent.goulet@act.ulaval.ca

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

data(gdental)
mean(gdental)

actuar documentation built on July 16, 2022, 9:05 a.m.