Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mean.grouped.data

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)

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

Actuarial Functions and Heavy Tailed Distributions

v3.1-2
GPL (>= 2)
Authors
Vincent Goulet [cre, aut], Sébastien Auclair [ctb], Christophe Dutang [aut], Nicholas Langevin [ctb], Xavier Milhaud [ctb], Tommy Ouellet [ctb], Alexandre Parent [ctb], Mathieu Pigeon [aut], Louis-Philippe Pouliot [ctb], Jeffrey A. Ryan [aut] (Package API), Robert Gentleman [aut] (Parts of the R to C interface), Ross Ihaka [aut] (Parts of the R to C interface), R Core Team [aut] (Parts of the R to C interface), R Foundation [aut] (Parts of the R to C interface)
Initial release
2021-03-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.