geo_mean.Rd
Compute the geometric mean of a numeric vector, optionally removing NA values.
NA
geo_mean(x, na.rm = T)
A numeric vector.
Logical (default TRUE). Whether to remove NA values.
TRUE
A numeric scalar representing the geometric mean.
Defined as exp(mean(log(x))), assuming all x > 0. Useful for combining multiplicative factors or log-normal distributions.
exp(mean(log(x)))
x > 0