sgeomean.cl.normal: Summary of geometric mean and 95% CI

View source: R/sgeomean.cl.normal.r

sgeomean.cl.normalR Documentation

Summary of geometric mean and 95% CI

Description

Make a summary of the geometric mean and 95% CI of the input

Usage

sgeomean.cl.normal(x, conf.int = 0.95, log.base = exp(1), na.rm = TRUE)

Arguments

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

Value

Vector of three values, representing the geometric mean, and the lower and upper component of the confidence interval.

Examples

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

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.