ci2z: Transforms confidence intervals to z-values.

Description Usage Arguments Value See Also Examples

View source: R/ci2.R

Description

Transforms confidence intervals to the corresponding z-values.

Usage

1
ci2z(lower, upper, conf.level = 0.95, ratio = FALSE)

Arguments

lower

a vector of lower confidence interval bounds

upper

a vector of upper confidence interval bounds

conf.level

The confidence level of the confidence intervals. Default is 0.95

ratio

Indicates whether the confidence interval is for a ratio, e.g. an odds ratio, relative risk or hazard ratio. If TRUE the z-value of the log ratio is computed. Defaults to FALSE.

Value

A numeric vector of z-values.

See Also

ci2p, ci2se, ci2estimate, p2z, z2p

Examples

1
2
3
ci2z(lower = 1, upper = 3)
ci2z(lower = 1, upper = 3, ratio = TRUE)
ci2z(lower = 1, upper = 3, conf.level = 0.9)

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