different_means: Different Means

different_meansR Documentation

Different Means

Description

Functions to determine harmonic and geometric means.

Usage

mean_harmonic(x, ..., na.rm = getOption("na.rm", FALSE))

mean_geometric(x, ..., na.rm = getOption("na.rm", FALSE))

Arguments

x

numeric vector

...

arguments passed on to base::mean()

na.rm

ignore empty values

Details

The harmonic mean can be expressed as the reciprocal of the arithmetic mean of the reciprocals.

The geometric mean is defined as the nth root of the product of n numbers.


certe-medical-epidemiology/certestats documentation built on Nov. 9, 2024, 8:15 p.m.