View source: R/stats-utility.R
geomCV | R Documentation |
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)
x |
Numeric vector. |
na.rm |
Logical, should NA value(s) be removed (FALSE by default)? |
Numeric vector of length 1 with geometric coefficient of variation.
Laure Cougnaud
Other stats utility functions:
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.