powered by
The coefficient of variation is computed as: \(\frac{\sigma(x)}{\bar{x}}*100\), with:
\(\sigma(x)\): standard deviation of x
x
\(\bar{x}\): arithmetic mean of x
cv(x, na.rm = FALSE)
Numeric vector of length 1 with coefficient of variation.
Numeric vector.
Logical, should NA value(s) be removed (FALSE by default)?
Laure Cougnaud
Other stats utility functions: geomCV(), geomMean(), geomSD(), geomSE(), se()
geomCV()
geomMean()
geomSD()
geomSE()
se()
# coefficient of variation of normal distribution tends to 100% cv(rnorm(n = 1000, mean = 1, sd = 1))
Run the code above in your browser using DataLab