gm {pmxTools} | R Documentation |
Calculate geometric mean
Description
Calculate geometric mean
Usage
gm(x)
Arguments
x |
Numeric vector. |
Value
The geometric mean. NA
is returned if there are any non-positive elements in x
.
Author(s)
Justin Wilkins, justin.wilkins@occams.com
Examples
gm(c(0.5, 7, 8, 5))
[Package pmxTools version 1.3 Index]