get_details.bma {basksim}R Documentation

Get Details of a BMA Basket Trial Simulation

Description

Get Details of a BMA Basket Trial Simulation

Usage

## S3 method for class 'bma'
get_details(design, n, p1 = NULL, lambda, pmp0, iter = 1000, data = NULL, ...)

Arguments

design

An object of class bma.

n

The sample size per basket.

p1

Probabilities used for the simulation. If NULL then all probabilities are set to p0.

lambda

The posterior probability threshold.

pmp0

Power parameter that is used to compute prior probabilities. See bma for details.

iter

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.

...

Further arguments.

Value

A list containing the rejection probabilites, posterior means, and mean squared errors for all baskets as well as the family-wise error rate.

Examples

design <- setup_bma(k = 3, p0 = 0.2)
get_details(design = design, n = 20, p1 = 0.5, lambda = 0.95, pmp0 = 1,
  iter = 100)

[Package basksim version 1.0.0 Index]