ci2p: ci2p

Description Usage Arguments Details Value Examples

Description

ci2p compute the p-value related with a provided confidence interval. It considers a simmetric distribution (by default standard normal).

Usage

1
2
ci2p(est, lower, upper, log_trasform = FALSE, conf = 0.95,
  qdist = stats::qnorm, pdist = stats::pnorm)

Arguments

est

estimated value

lower

lower bound of the confidence level

upper

upper bound of the confidence level

log_trasform

(default 'FALSE') flag indicating if a log trasformation as to apply to the data

conf

(default '95%') confidence level

qdist

(default 'qnorm') quantile function

pdist

(default 'pnorm') distribution function

Details

Confidence level can be customize (by default 95 possible to apply a log trasformation in case of proportions.

Value

a p-value

Examples

1
2
depigner:::ci2p(1.125, 0.634,	1.999, log_trasform = TRUE)
depigner:::ci2p(1.257, 1.126,	1.403, log_trasform = TRUE)

CorradoLanera/depigner documentation built on June 1, 2019, 9:12 p.m.