Skip to contents

Spread of values around the geometric mean. The geometric standard deviation can be described as a geometric factor and this cannot be added/subtracted from the geometric mean.

Usage

geom.var(x, ..., na.rm = FALSE)

Arguments

x

a numeric vector, matrix or data frame

...

additional parameters to be passed to 'geom.mean()'

na.rm

indicate whether or not to remove NAs

Value

a numeric vector of length equal or greater than 1L.

Examples

d <- rlnorm(60,1,1.3)
geom.var(d)
#> [1] 8.647629

x <- matrix(rlnorm(60,1,1.4), ncol = 4)
mapply(geom.var,as.data.frame(x))
#>        V1        V2        V3        V4 
#>  3.087335  8.680884  6.802660 19.641553