View source: R/sgeomean.cl.normal.r
sgeomean.cl.normal | R Documentation |
Make a summary of the geometric mean and 95% CI of the input
sgeomean.cl.normal(x, conf.int = 0.95, log.base = exp(1), na.rm = TRUE)
x |
numeric vector |
conf.int |
confidence interval, default is 0.95, for 95%) |
log.base |
base of log, defaults to natural log |
na.rm |
logical determining if NA values need to be omitted before the operation |
Vector of three values, representing the geometric mean, and the lower and upper component of the confidence interval.
library(Hmisc)
test.vector = rlnorm(1000,log(100),0.5)
hist(test.vector)
smean.cl.normal(test.vector) ## arithmetic mean and 95% confidence intervals
sgeomean.cl.normal(test.vector) ## geometic mean and 95% confidence intervals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.