rpbrPar: Representing Randomized Permuted Block Randomization

View source: R/rpbrPar.R

rpbrParR Documentation

Representing Randomized Permuted Block Randomization

Description

Represents the randomization procedure Randomized Permuted Block Randomization.

Usage

rpbrPar(
  N,
  rb,
  K = 2,
  ratio = rep(1, K),
  groups = LETTERS[1:K],
  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.

K

number of treatment groups (e.g. K=2 if we compare one experimental against one control treatment).

ratio

vector of length K. The total sample number N and all used block lengths (bc) have to be divisible by sum(ratio).

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, the number of treatment groups K, the sample size N and the vector of the ratio. Afterwards, one block length is randomly selected of the random block lengths. The patients are assigned according to the ratio to the corresponding treatment groups. This procedure is repeated until N patients are assigned. Within each block all possible randomization sequences are equiprobable.

Value

S4 object of the class rpbrPar.

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, rtbdPar, tbdPar, udPar


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