rtbdPar: Representing Randomized Truncated Binomial Design

View source: R/rtbdPar.R

rtbdParR Documentation

Representing Randomized Truncated Binomial Design

Description

Represents the randomization procedure Randomized Truncated Binomial Design.

Usage

rtbdPar(N, rb = N, groups = LETTERS[1:2], filledBlock = FALSE)

Arguments

N

integer for the total sample size of the trial.

rb

block lengths of the blocks that can be selected equiprobable at random.

groups

character vector of labels for the different treatments.

filledBlock

logical whether the last block should be filled or not.

Details

Fix the possible random block lengths rb and the sample size of the trial N. Afterwards, one block length is randomly selected of the random block lengths. In this block a fair coin is tossed for the patient assignments until half of the patients have been assigned to one of the treatment arms. Afterwards, the block is filled with the other treatment. This procedure is repeated until N patients are assigned.

Value

S4 object of the class rtbdPar.

References

W. F. Rosenberger and J. M. Lachin (2002) Randomization in Clinical Trials. Wiley.

See Also

Other randomization procedures: abcdPar, bbcdPar, bsdPar, chenPar, crPar, createParam(), ebcPar, gbcdPar, hadaPar, mpPar, pbrPar, rarPar, rpbrPar, tbdPar, udPar


randomizeR documentation built on Sept. 19, 2023, 1:08 a.m.