Weighted geometric mean of a vector. NA
are skipped by default.
Examples
# a vector of values
x <- 1:10
# a vector of weights
w <- runif(10)
# weighted geometric mean
a_gmean(x,w)
#> [1] 5.287435
Weighted geometric mean of a vector. NA
are skipped by default.
# a vector of values
x <- 1:10
# a vector of weights
w <- runif(10)
# weighted geometric mean
a_gmean(x,w)
#> [1] 5.287435