Computes assurance (power) using generating and audience Beta priors for a binomial count via a Beta-Binomial predictive distribution.
beta_binom_power(
n,
gen_prior_a,
gen_prior_b,
aud_prior_a,
aud_prior_b,
hdi_mass = 0.95,
rope = NULL,
hdi_max_width = NULL
)Assurance value between 0 and 1.
Sample size (number of trials).
Generating Beta prior parameters.
Audience Beta prior parameters.
HDI mass (e.g., 0.95).
Length-2 numeric vector for ROPE bounds, or NULL for max-width rule.
Positive width threshold for the HDI (used if rope=NULL).