normConstCVCI: Log-centered confidence intervals from a Normal constant...

Description Usage Arguments Value Examples

View source: R/testassay.R

Description

Assume Y is normal with mean mu>0 and coefficient of variation theta, then Y/mu ~ N(1, theta^2). Get log-centered confidence intervals (when possible), meaning intervals such that log(y) +/- r(theta), where r(theta) is a constant function of theta.

Usage

1
normConstCVCI(y, theta, conf.level = 0.6827, eps = .Machine$double.eps^0.25)

Arguments

y

vector of observed values, should be positive

theta

coefficient of variation (assumed known)

conf.level

Confidence level

eps

a small number used in the algorithm (look at code before changing)

Value

A list with the following components

Examples

1
2
3
4
# defaults to 68.27 percent confidence level, same level as Normal plus or minus 1 std dev.
normConstCVCI(3.4,.6)
# symmetric on log scale
log(normConstCVCI(3.4,.6))

testassay documentation built on July 1, 2020, 10:25 p.m.