If any argument is negative,
then the result is a null or missing value. A message appears in the
log that the negative argument is invalid. If any argument is zero,
then the geometric mean is zero. If all the arguments are null or
missing values, then the result is a null or missing value. Otherwise,
the result is the geometric mean of the non-null or nonmissing values.
Let
be the number of arguments with non-null or nonmissing
values, and let
be the values of those arguments. The geometric
mean is the
root of the product of the values:
Equivalently, the geometric
mean is shown in this equation.