ci2p
compute the p-value related with a provided confidence
interval. It considers a symmetric distribution (by default standard
normal).
estimated value
lower bound of the confidence level
upper bound of the confidence level
(default `FALSE`) flag indicating if a log transformation as to apply to the data
(default `95%`) confidence level
(default `qnorm`) quantile function
(default `pnorm`) distribution function
a p-value
Confidence level can be customize (by default 95 possible to apply a log transformation in case of proportions.
ci2p(1.125, 0.634, 1.999, log_transform = TRUE)
#> [1] 0.367902
ci2p(1.257, 1.126, 1.403, log_transform = TRUE)
#> [1] 0.0003118063