cv: Computes Pearson's coefficient of variation

Description Usage Arguments Details Value Author(s) Examples

Description

This functions computes the absolute coefficient of variation as proposed by Pearson: standard deviation divided by the mean. Essentially, cv reflects a normalized measure of dispersion of a probability distribution. Distributions with cv < 1 are considered low-variance, while those with cv > 1 high-variance.

Usage

1
cv(x)

Arguments

x

is a numeric vector.

Details

sd(x)/mean(x) = cv, which is the inverse of signal-to-noise ratio.

Value

Will return the computation of the variation.

Author(s)

Daniel Marcelino

Examples

1
2
v <- rnorm(10) 
cv(v)


Search within the SciencePo package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.