geomCV {inTextSummaryTable}R Documentation

Compute geometric coefficient of variation (in a scale from 0 to 100).

Description

The geometric coefficient of variation is computed as: \sqrt{\exp(\sigma(log(x))^2)-1}*100, with:

Usage

geomCV(x, na.rm = FALSE)

Arguments

x

Numeric vector.

na.rm

Logical, should NA value(s) be removed (FALSE by default)?

Value

Numeric vector of length 1 with geometric coefficient of variation.

Author(s)

Laure Cougnaud

See Also

Other stats utility functions: cv(), geomMean(), geomSD(), geomSE(), se()

Examples

# Geometric coefficient of variation of a sample from a log normal distribution:
geomCV(rlnorm(n = 1000, meanlog = 0, sdlog = 1))

[Package inTextSummaryTable version 3.3.2 Index]