randomize: Randomization scheme wrapper

Description Usage Arguments Value Examples

View source: R/wrapper.R

Description

Wrapper function for the randomization scheme in the trial.

Usage

1
randomize(block_size = 2, randomization_ratio = c(1, 1), .data = NULL)

Arguments

block_size

integer. Block size for the complete randomization in a block.

randomization_ratio

vector. The randomization allocation for control to treatment.

.data

NULL. This should not be changed by the user.

Value

a list with randomization details (block size and ratio).

Examples

1
2
randomize(block_size = 100, randomization_ratio = c(2, 3))
randomize(block_size = 10, randomization_ratio = c(1, 4))

bayesCT documentation built on July 2, 2020, 2:34 a.m.