get_details.cpp: Get Details of a Basket Trial Simulation with the Calibrated Power Prior
Design
Description
Get Details of a Basket Trial Simulation with the Calibrated Power Prior
Design
Usage
# S3 method for cpp
get_details(
design,
n,
p1 = NULL,
lambda,
level = 0.95,
tune_a,
tune_b,
iter = 1000,
data = NULL,
...
)
Value
A list containing the rejection probabilites, posterior means,
mean squared errors and mean limits of HDI intervals for all baskets as well
as the family-wise error rate.
Arguments
design
An object of class cpp.
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.
level
Level of the credibility intervals.
tune_a
First tuning parameter that determines the amount of borrowing
based on pairwise similarity between baskets.
tune_b
Second tuning parameter that determines the amount of borrowing
based on pairwise similarity between baskets.
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.