setup_bma | R Documentation |
Creates an object of class bma
.
setup_bma(k, p0, shape1 = 1, shape2 = 1)
k |
The number of baskets. |
p0 |
A common probability under the null hypothesis. |
shape1 |
First common shape parameter of the beta prior. |
shape2 |
Second common shape parameter of the beta prior. |
The class bma
implements the Bayesian Model Averaging
design by Pisoda et al. (2021). Functions for this class are mostly
wrappers for functions of the bmabasket
package.
An S3 object of class bma
Psioda, M. A., Xu, J., Jiang, Q. I., Ke, C., Yang, Z., & Ibrahim, J. G. (2021). Bayesian adaptive basket trial design using model averaging. Biostatistics, 22(1), 19-34.
design_bma <- setup_bma(k = 3, p0 = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.