Learn R Programming

basksim (version 1.0.0)

setup_jsdglobal: Setup Global JSD Design Object

Description

Setup Global JSD Design Object

Usage

setup_jsdglobal(k, p0, shape1 = 1, shape2 = 1)

Value

An S3 object of class jsdglobal

Arguments

k

The number of baskets.

p0

A common probability under the null hypothesis.

shape1

First common shape parameter of the beta prior.

shape2

Second common shape parameter of the beta prior.

Details

The class jsdglobal implements a version of the power prior design, in which information is shared based on pairwise similarity and overall heterogeneity between baskets. Both pairwise similarity and overall heterogeneity are assessed using the Jensen-Shannon divergence.

References

Baumann, L., Sauer, L., & Kieser, M. (2024). A basket trial design based on power priors. arXiv:2309.06988.

Examples

Run this code
design_jsdglobal <- setup_jsdglobal(k = 3, p0 = 0.2)

Run the code above in your browser using DataLab