If details = TRUE: A list, including matrices of the weights
that are used for borrowing, posterior distribution parameters for all
baskets without and with borrowing, as well as the posterior probabilities
for all baskets without and with borrowing. If details = FALSE:
The posterior probabilities for all baskets with borrowing.
Arguments
design
An object of class Basket created by
setupOneStageBasket or setupTwoStageBasket.
...
Further arguments.
n
The sample size per basket.
r
The vector of observed responses.
lambda
The posterior probability threshold. See details for more
information.
weight_fun
Which function should be used to calculate the pairwise
weights.
weight_params
A list of tuning parameters specific to
weight_fun.
globalweight_fun
Which function should be used to calculate the
global weights.
globalweight_params
A list of tuning parameters specific to
globalweight_fun.
details
Whether a detailed list of results or only the vector
of posterior probabilities is returned.
Methods (by class)
basket_test(OneStageBasket): Testing for a single-stage basket design.