geomSD: Compute geometric standard deviation

View source: R/stats-utility.R

geomSDR Documentation

Compute geometric standard deviation

Description

The geometric standard deviation is computed as: \exp(\sigma(log(x))), with:

  • log: natural logarithm

  • \sigma: standard deviation

Usage

geomSD(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 mean.

Author(s)

Laure Cougnaud

See Also

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

Examples

# geometric standard deviation of a sample from a log normal distribution:
geomSD(rlnorm(n = 1000, meanlog = 0, sdlog = 1))

inTextSummaryTable documentation built on Sept. 12, 2023, 5:06 p.m.