Arguments
- q
(
number
):
vector of quantiles- parY
(
numeric
):
two parameters ofY
's Beta distribution (Treatment)- parX
(
numeric
):
two parameters ofX
's Beta distribution (Control)- rel.tol
(
number
):
used instats::integrate()
Examples
# The following examples use these parameters:
parX <- c(1, 52)
parY <- c(5.5, 20.5)
# Calculate probability based on quantile `Q(Z) =< 0.122838`
pbetadiff(
q = 0.122838,
parY = parY,
parX = parX
)
#> [1] 0.2000019
# Calculate probability based on quantile `Q(Z) =< 0.5`
pbetadiff(
q = 0.5,
parY = parY,
parX = parX
)
#> [1] 0.9993969