plot_weights {baskexact}R Documentation

Plot Weight Functions

Description

Plot Weight Functions

Usage

plot_weights(design, ...)

## S4 method for signature 'OneStageBasket'
plot_weights(design, n, r1, weight_fun, weight_params = list(), ...)

Arguments

design

An object of class Basket created by setupOneStageBasket or setupTwoStageBasket.

...

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 weight_fun.

Details

The design object is only used for the prior parameters, which affect the weights of some weight functions.

Value

A plot.

Methods (by class)

Examples

design <- setupOneStageBasket(k = 3, p0 = 0.2, shape1 = 1, shape2 = 1)
plot_weights(design = design, n = 20, r1 = 10, weight_fun = weights_jsd)

[Package baskexact version 1.0.1 Index]