Description Usage Arguments Details Value Dependencies Author(s) Examples
Computes the geometric mean for a given study variable.
1 2 | ds.geometricMean(x = NULL, naRm = TRUE, zero.propagate = FALSE,
datasources = NULL)
|
x |
a character, the name of study variable. |
naRm |
a boolean, if TRUE (default) remove the missing values during the computation on the server side; if FALSE does not remove the missing values. |
zero.propagate |
a boolean, if TRUE (default) remove all zeros during the computation on the server side; if FALSE does not remove the zero values. |
datasources |
a list of opal object(s) obtained after login in to opal servers;
these objects hold also the data assign to R, as |
Formally the geometric mean is the in root of the n numbers products, or exp to the mean log of x. Each data node computes the sum of logs, and the central node computes the arithmetic mean and its exponentiation.
return a numeric value.
getGm
, getLength
Paula Raissa Costa e Silva
1 2 3 | {
gm <- ds.geometricMean('D$birth_weight')
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.