geometric_sd {epiCo} | R Documentation |
Returns the geometric standard deviation of a vector of real numbers.
Description
Function that returns the geometric standard deviation of a vector of real numbers according to the selected method.
Usage
geometric_sd(
x,
method = c("positive", "shifted", "optimized", "weighted"),
shift = 1,
delta = 0.001
)
Arguments
x |
A numeric vector of real values |
method |
Description of methods:
|
shift |
a positive value to use in the shifted method |
delta |
an positive value (shift) used in the optimized method. |
Value
The geometric mean of the x vector, and the epsilon value if optimized method is used.
Examples
x <- c(4, 5, 3, 7, 8)
geometric_sd(x, method = "optimized")