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