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 June 22, 2024, 9:24 a.m.