Create a Permuted Block Randomization Method Instance
Source:R/class_random_method_pbr.R
getRandomMethodPBR.RdConstructs and returns a new RandomMethodPBR reference class object,
configured for permuted block randomization with specified block
sizes and design options.
Usage
getRandomMethodPBR(
...,
blockSizes = list(),
fixedBlockDesignEnabled = TRUE,
fixedBlockIndex = 1L,
blockSizeRandomizer = NULL
)Arguments
- ...
Additional arguments passed to the
RandomMethodPBRinitializer.- blockSizes
List of block size configurations, each mapping treatment arm IDs to sizes.
- fixedBlockDesignEnabled
Logical indicating if a fixed block design is used (default: TRUE).
- fixedBlockIndex
Integer specifying the index of the fixed block size to use (default: 1).
- blockSizeRandomizer
RandomBlockSizeRandomizerobject for selecting block sizes randomly.