Skip to contents

Calculate Geometric Standard Deviation

Usage

geom_sd(x, na.rm = FALSE)

Arguments

x

The vector of data you want the geometric sd of.

na.rm

a boolean to remove NA values. Default is False

Value

the geometric standard deviation of x

Details

The geometric standard deviation is calculated as: $$GSD = \exp\left(\sqrt{Var[\log(x)]}\right)$$

See also

Other statistics: cor_df(), cv(), geom_cv(), geom_mean()

Examples

geom_sd(c(1, 2, 3, 2, 1))
#> [1] 1.620824