geomMean: Geometric Mean

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/geomMean.R

Description

Computation of the geometric mean.

Usage

1
geomMean(x, na.rm = TRUE)

Arguments

x

numeric vector of non-negative Reals

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Details

The computation of the geometric mean is done via prod(x)^(1/length(x)).

Value

geometric mean

Note

A first version of this function appeared in package SLqPCR.

Author(s)

Matthias Kohl Matthias.Kohl@stamats.de

References

Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.

Examples

1
2
x <- rlnorm(100)
geomMean(x)

jimrperkins/NormqPCR documentation built on March 6, 2020, 1:06 a.m.