Minimum n for Target Assurance (Beta-Binomial)
min_n_beta_binom(
gen_prior_mode,
gen_prior_n,
desired_power,
aud_prior_mode = 0.5,
aud_prior_n = 2,
hdi_mass = 0.95,
rope = NULL,
hdi_max_width = NULL,
n_start = 20,
n_max = 1e+05,
verbose = TRUE
)Smallest n meeting the target assurance.
Generating prior mode in (0,1).
Generating prior concentration (>= 2).
Target assurance value in (0,1).
Audience prior mode in (0,1).
Audience prior concentration (>= 2).
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).
Starting sample size for search.
Maximum sample size to try.
If TRUE, prints progress.