geomean | R Documentation |
Calculates log-normal bias corrected geometric mean of a vector. NAs and zeros are removed from consideration. If a vector of length zero is entered then geomean returns 0.
geomean(invect = NULL)
invect |
is a vector of numbers in linear space. |
The bias-corrected geometric mean of the vector
x <- c(1,2,3,4,5,6,7,8,9)
geomean(x)
geomean(c(NA,0,NA,0))
geomean()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.