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)

SciencePo documentation built on May 2, 2019, 5:53 p.m.