Learn R Programming

baskexact (version 1.0.1)

weights_pool: Pooled Analysis

Description

Pooled Analysis

Usage

weights_pool(design, ...)

# S4 method for OneStageBasket weights_pool(design, n, ...)

# S4 method for OneStageBasket weights_pool(design, n, ...)

# S4 method for TwoStageBasket weights_pool(design, n, n1, ...)

Value

A weight matrix where all weights are 1.

Arguments

design

An object of class Basket created by setupOneStageBasket or setupTwoStageBasket.

...

Further arguments.

n

The sample size per basket.

n1

The sample size per basket for the interim analysis in case of a two-stage design.

Methods (by class)

  • weights_pool(OneStageBasket): Pooled analysis for a single-stage basket design

  • weights_pool(OneStageBasket): Pooled analysis for a single-stage basket design

  • weights_pool(TwoStageBasket): Pooled analysis for a two-stage basket design

Details

When weights_pool is used as a weight function, all data are pooled.

Examples

Run this code
design <- setupOneStageBasket(k = 3, p0 = 0.2)
toer(design, n = 15, lambda = 0.99, weight_fun = weights_pool)

Run the code above in your browser using DataLab