gm_95CI | R Documentation |
gm_95CI
takes as input a numeric vector and returns the geometric 95
percent confidence interval
gm_95CI(x, na.rm = TRUE, zero.propagate = FALSE)
x |
A vector of numbers |
na.rm |
Should NA values be removed? (logical) |
zero.propagate |
Should zeroes be propagated? (logical) |
Because this calculation log-transforms the input data:
values of zero must be either omitted (zero.propagate = FALSE) or, if included (zero.propagate = TRUE), the result will be NA, and
the function is undefined for negative numbers.
Returns a list of numbers
gm_95CI(rnorm(10, 5, 1))
gm_95CI(c(4, 3, 7, 19, 4, 0), zero.propagate = TRUE)
gm_95CI(c(4, 3, 7, 19, 4, 0), zero.propagate = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.