Calculates the quantile of the Beta difference for a given probability.
Usage
qbetadiff(p, parY, parX, eps = .Machine$double.eps)
Arguments
- p
(number
):
vector of probabilities
- parY
(numeric
):
two parameters of Y
's Beta distribution (Treatment)
- parX
(numeric
):
two parameters of X
's Beta distribution (Control)
- eps
(number
):
lowest floating point number as lower bound of integration
Value
The quantile values.
Examples
# The following examples use these parameters:
parX <- c(1, 52)
parY <- c(5.5, 20.5)
# Calculate quantile when at there is at least 20% of difference.
qbetadiff(
p = 0.2,
parY = parY,
parX = parX
)
#> [1] 0.1228383