View source: R/mean.grouped.data.R
mean.grouped.data | R Documentation |
Mean of grouped data objects.
## S3 method for class 'grouped.data'
mean(x, ...)
x |
an object of class |
... |
further arguments passed to or from other methods. |
The mean of grouped data with group boundaries c_0, c_1, \dots,
c_r
and group frequencies n_1, \dots,
n_r
is
\frac{1}{n} \sum_{j = 1}^r a_j n_j,
where
a_j = (c_{j - 1} + c_j)/2
is the midpoint of the j
th interval, and
n = \sum_{j = 1}^r n_j
.
A named vector of means.
Vincent Goulet vincent.goulet@act.ulaval.ca
Klugman, S. A., Panjer, H. H. and Willmot, G. E. (1998), Loss Models, From Data to Decisions, Wiley.
grouped.data
to create grouped data objects;
emm
to compute higher moments.
data(gdental)
mean(gdental)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.