getGm: getGm

Description Usage Arguments Details Value Dependencies Author(s)

Description

getGm returns the sum of logs of all values present in its arqguments

Usage

1
getGm(x, na.rm = TRUE, zero.propagate = FALSE)

Arguments

x

is name of a variable

na.rm

logical. Should misssing values (including NaN) be removed?

zero.propagate

logical. Control the propagation of zeros.

Details

The geometric mean is one type of average. It differs to arithmetic mean when the arithmetic mean adds items and the geometric mean multiplies items. Formally the geometric mean is the i_n root of the n numbers products or exp to the mean log of x.

Value

the sum of logs

Dependencies

getVarByName

Author(s)

Paula R. Costa e Silva


paularaissa/distStatsServer documentation built on June 19, 2019, 12:43 a.m.