powered by
Get Details of a BMA Basket Trial Simulation
# S3 method for bma get_details(design, n, p1 = NULL, lambda, pmp0, iter = 1000, data = NULL, ...)
A list containing the rejection probabilites, posterior means, and mean squared errors for all baskets as well as the family-wise error rate.
An object of class bma.
bma
The sample size per basket.
Probabilities used for the simulation. If NULL then all probabilities are set to p0.
NULL
The posterior probability threshold.
Power parameter that is used to compute prior probabilities. See bma for details.
The number of iterations in the simulation. Is ignored if data is specified.
data
A data matrix with k column with the number of responses for each basket. Has to be generated with get_data. If data is used, then iter is ignored.
get_data
iter
Further arguments.
design <- setup_bma(k = 3, p0 = 0.2) get_details(design = design, n = 20, p1 = 0.5, lambda = 0.95, pmp0 = 1, iter = 100)
Run the code above in your browser using DataLab