CI2t {ReplicationSuccess}R Documentation

Transforms confidence intervals to test statistics.

Description

Transforms confidence intervals to the corresponding test statistics.

Usage

CI2t(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 t-values.

Examples

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

[Package ReplicationSuccess version 0.1-1 Index]