powered by
Plot Weight Functions
plot_weights(design, ...)# S4 method for OneStageBasket plot_weights(design, n, r1, weight_fun, weight_params = list(), ...)
# S4 method for OneStageBasket plot_weights(design, n, r1, weight_fun, weight_params = list(), ...)
A plot.
An object of class Basket created by setupOneStageBasket or setupTwoStageBasket.
Basket
setupOneStageBasket
setupTwoStageBasket
Further arguments.
The sample size per basket.
Number of responses in one basket
Which function should be used to calculate the pairwise weights.
A list of tuning parameters specific to weight_fun.
weight_fun
plot_weights(OneStageBasket): Plot weights for a single-stage basket trials
plot_weights(OneStageBasket)
The design object is only used for the prior parameters, which affect the weights of some weight functions.
design <- setupOneStageBasket(k = 3, p0 = 0.2, shape1 = 1, shape2 = 1) plot_weights(design = design, n = 20, r1 = 10, weight_fun = weights_jsd)
Run the code above in your browser using DataLab