| a_gmean {COINr} | R Documentation | 
Weighted geometric mean
Description
Weighted geometric mean of a vector. NA are skipped by default.
Usage
a_gmean(x, w = NULL)
Arguments
| x | A numeric vector of positive values. | 
| w | A vector of weights, which should have length equal to  | 
Details
This function replaces the now-defunct geoMean() from COINr < v1.0.
Value
The geometric mean, as a numeric value.
Examples
# a vector of values
x <- 1:10
# a vector of weights
w <- runif(10)
# weighted geometric mean
a_gmean(x,w)
[Package COINr version 1.1.14 Index]