ci2estimate: Transforms confidence intervals to parameter estimates

Description Usage Arguments Value See Also Examples

View source: R/ci2.R

Description

Transforms confidence intervals to the corresponding parameter estimates.

Usage

1
ci2estimate(lower, upper, ratio = FALSE, antilog = FALSE)

Arguments

lower

a vector of lower confidence interval bounds

upper

a vector of upper confidence interval bounds

ratio

Indicates whether the confidence interval is for a ratio, e.g. an odds ratio, relative risk or hazard ratio, or not. Defaults to FALSE.

antilog

Indicates whether the estimate is reported on the ratio scale. Only applies if ratio == TRUE. Defaults to FALSE.

Value

A numeric vector of parameter estimates.

See Also

ci2p, ci2se, ci2z, p2z, z2p

Examples

1
2
3
ci2estimate(lower = 1, upper = 3)
ci2estimate(lower = 1, upper = 3, ratio = TRUE)
ci2estimate(lower = 1, upper = 3, ratio = TRUE, antilog = TRUE)

ReplicationSuccess documentation built on Dec. 2, 2020, 3 p.m.