R: Arithmetic Mean

mean.grouped.data {actuar} | R 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[1], …, c[r] and group frequencies n[1], …, n[r] is

sum(j; (c[j - 1] + c[j])/2 * 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)

[Package actuar version 3.0-0 Index]