Description Usage Arguments Details Value Author(s) References See Also Examples
Calculating the arithmetic mean, weighted or non-weighted, or the geometric mean
1 |
x |
a |
weighting |
a |
output |
argument to specify the output ( |
na.rm |
logical argument that whether NA values should be extracted or not |
This function uses the formula for the weighted arithmetic mean from Sheret (1984).
Single numeric value. If output = "mean"
and weighting
is specified, the function returns a weighted arithmetic mean. If output = "geom"
, the geometric mean is returned.
Thomas Wieland
Bahrenberg, G./Giese, E./Mevenkamp, N./Nipper, J. (2010): “Statistische Methoden in der Geographie. Band 1: Univariate und bivariate Statistik”. Stuttgart: Borntraeger.
Sheret, M. (1984): “The Coefficient of Variation: Weighting Considerations”. In: Social Indicators Research, 15, 3, p. 289-295.
1 2 3 4 5 6 |
[1] 40
[1] 40
[1] 29.2702
[1] 27.35427
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.