geoSD: Geometric standard deviation

View source: R/math_funcs.R

geoSDR Documentation

Geometric standard deviation

Description

This calculates the geometric tandard deviation, a dimensionless multiplicative factor to use with the geometric mean. When used with the geometric mean, the range is described as from the (geometric mean / geometric SD) to (geometric mean * geometric SD)

Usage

geoSD(x, ...)

Arguments

x

Numeric vector

Value

Geometric SD factor of the input data

References

Kirkwood, T.B.L. (1979). "Geometric means and measures of dispersion". Biometrics. 35: 908-9. JSTOR 2530139.

Examples

x <- rlnorm(100)
gm <- geoMean(x)
gsd <- geoSD(x)

print(paste("Geometric mean:",gm))
print(paste("Lower bound:", gm/gsd))
print(paste("Upper bound:", gm*gsd))


BIO-RSG/oceancolouR documentation built on April 20, 2024, 6:40 a.m.