ci2p: Transforms confidence intervals to p-values.

Description Usage Arguments Value See Also Examples

View source: R/ci2.R

Description

Transforms confidence intervals to the corresponding p-values.

Usage

1
ci2p(lower, upper, conf.level = 0.95, ratio = FALSE, alternative = "two.sided")

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. Defaults to FALSE.

alternative

type of p-value. Either "two.sided" or "one.sided". Defaults to "two.sided". Specifies if the p-values are one-sided or two-sided.

Value

A numeric vector of p-values

See Also

ci2se, ci2z, ci2estimate, p2z, z2p

Examples

1
2
ci2p(lower = 1, upper = 3)
ci2p(lower = 1, upper = 3, alternative = "one.sided")

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