setup_bma {basksim}R Documentation

Setup bma Design Object

Description

Creates an object of class bma.

Usage

setup_bma(k, p0, shape1 = 1, shape2 = 1)

Arguments

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.

Details

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.

Value

An S3 object of class bma

References

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.

Examples

design_bma <- setup_bma(k = 3, p0 = 0.2)

[Package basksim version 1.0.0 Index]