View source: R/stats-utility.R
geomSD | R Documentation |
The geometric standard deviation is computed as:
\exp(\sigma(log(x)))
, with:
log: natural logarithm
\sigma
: standard deviation
geomSD(x, na.rm = FALSE)
x |
Numeric vector. |
na.rm |
Logical, should NA value(s) be removed (FALSE by default)? |
Numeric vector of length 1 with geometric mean.
Laure Cougnaud
Other stats utility functions:
cv()
,
geomCV()
,
geomMean()
,
geomSE()
,
se()
# geometric standard deviation of a sample from a log normal distribution:
geomSD(rlnorm(n = 1000, meanlog = 0, sdlog = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.