Skip to contents

Calculate Geometric Coefficient of Variation

Usage

geom_cv(x, na.rm = FALSE)

Arguments

x

vector of data you want the geometric CV of.

na.rm

boolean to remove NA from vector. Default is FALSE

Value

the geometric CV of the input vector x

Details

The geometric coefficient of variation is calculated as: $$GCV = \sqrt{\exp(Var[\log(x)]) - 1}$$

See also

Other statistics: cor_df(), cv(), geom_mean(), geom_sd()

Examples

geom_cv(c(1, 2, 3, 2, 1))
#> [1] 0.5125099