weights_pool {baskexact} | R Documentation |
Pooled Analysis
Description
Pooled Analysis
Usage
weights_pool(design, ...)
## S4 method for signature 'OneStageBasket'
weights_pool(design, n, ...)
## S4 method for signature 'OneStageBasket'
weights_pool(design, n, ...)
## S4 method for signature 'TwoStageBasket'
weights_pool(design, n, n1, ...)
Arguments
design |
An object of class |
... |
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. |
Details
When weights_pool
is used as a weight function, all data
are pooled.
Value
A weight matrix where all weights are 1.
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
Examples
design <- setupOneStageBasket(k = 3, p0 = 0.2)
toer(design, n = 15, lambda = 0.99, weight_fun = weights_pool)
[Package baskexact version 1.0.1 Index]