plot_weights | R Documentation |
Plot Weight Functions
plot_weights(design, ...)
## S4 method for signature 'OneStageBasket'
plot_weights(design, n, r1, weight_fun, weight_params = list(), ...)
design |
An object of class |
... |
Further arguments. |
n |
The sample size per basket. |
r1 |
Number of responses in one basket |
weight_fun |
Which function should be used to calculate the pairwise weights. |
weight_params |
A list of tuning parameters specific to
|
The design object is only used for the prior parameters, which affect the weights of some weight functions.
A plot.
plot_weights(OneStageBasket)
: Plot weights for a single-stage basket trials
design <- setupOneStageBasket(k = 3, p0 = 0.2, shape1 = 1, shape2 = 1)
plot_weights(design = design, n = 20, r1 = 10, weight_fun = weights_jsd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.