- method
A character vector. One or more dynamic borrowing methods to
explore (e.g., "Empirical Bayes", "Bayesian p").
- pc
A numeric vector. Response rates for the current control arm to
explore.
- nc
A numeric vector of integers. Sample sizes for the current control
arm to explore.
- pc.calib
A numeric vector. Control arm response rates used for
calibrating the type I error threshold, tau.
- q
A numeric vector. Ratios of nche / nc to explore.
- delta
A scalar numeric. The true difference to be added to pc to
determine the experimental arm response rate (pt).
- r
A scalar numeric. The randomization ratio of the experimental arm to
the control arm (nt / nc).
- pch
A scalar numeric. The response rate of the historical control arm.
- nch
A scalar integer. The total number of subjects in the historical
control arm.
- alpha
A scalar numeric. The one-sided Type I error rate.
- a0c, b0c
Numerics. Hyperparameters for the Beta(a0c, b0c) prior on
the control response rate. Defaults to 0.001.
- a0t, b0t
Numerics. Hyperparameters for the Beta(a0t, b0t) prior on
the experimental response rate. Defaults to 0.001.
- delta_threshold
A scalar numeric. The similarity threshold; borrowing is
only triggered if abs(pc_hat - pch_hat) <= delta_threshold. Default is 0.1.
- theta
A scalar numeric in (0, 1), applicable to the "Generalized BC"
method. Default is 0.5.
- eta
A scalar numeric, applicable to the "Bayesian p", "Generalized
BC", and "JSD" methods. Default is 1.
- nsim
A scalar integer. The number of Monte Carlo simulations for each
scenario.
- seed
A scalar integer. A seed for the random number generator to ensure
reproducibility. Default is NULL.
- ncore
An integer. The number of CPU cores for parallel processing. If
NULL (the default), it uses one less than the number of detected cores.