powered by
The geometric coefficient of variation is computed as: \(\sqrt{\exp(\sigma(log(x))^2)-1}*100\), with:
log: natural logarithm
\(\sigma\): standard deviation
geomCV(x, na.rm = FALSE)
Numeric vector of length 1 with geometric coefficient of variation.
Numeric vector.
Logical, should NA value(s) be removed (FALSE by default)?
Laure Cougnaud
Other stats utility functions: cv(), geomMean(), geomSD(), geomSE(), se()
cv()
geomMean()
geomSD()
geomSE()
se()
# Geometric coefficient of variation of a sample from a log normal distribution: geomCV(rlnorm(n = 1000, meanlog = 0, sdlog = 1))
Run the code above in your browser using DataLab