restricted: Restricted randomization

Description Usage Arguments Value Author(s) References Examples

Description

Simulates a clinical trial one time or multiple times with retricted randomizaion procedure

Usage

1
restricted(w, nsbj, procedure, parameter = NA, nsim = 1)

Arguments

w

vector of fixed allocation ratio ((ir)rational or integers with GCD = 1).

nsbj

number of subjects to randomize.

procedure

name of randomization procedure c("CRD", "PBD", "BUD", "MWUD", "DBCD", "DL", "MinQD", "MaxEnt").

parameter

tuning parameter of randomization procedure (NA for "CRD").

nsim

number of simulations (1 by default).

Value

In case of a single trial simulation (i.e. nsim equals to 1) returns a list with the following items items:

In case of multiple trial simulations (i.e. nsim larger than 1) returns a list with the following items items:

Author(s)

Yevgen Ryeznik (yevgen.ryeznik@gmail.com), Oleksandr Sverdlov

References

Ryeznik Y, Sverdlov O (2018) "A Comparative Study of Restricted Randomization Procedures for Multi-Arm Trials with Equal or Unequal Treatment Allocation Ratios", Statistics in Medicine, Submitted.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
   # a single trial simulation (without responses):
   #    target allocation ratio: 4:3:2:1 (i.e. 4 treatment groups)
   #    number of subjects involved in  trial: 100
   #    randomization procedure used: Drop-the-Loser (DL)
   #    randomization procedure parameter: 2

   restricted(c(4, 3, 2, 1), 200, "DL", 2)

   # 200 trial simulations without responses:
   #    target allocation ratio: 31:19 (i.e. 2 treatment groups)
   #    number of subjects involved in  trial: 50
   #    randomization procedure used: Maximum Entropy Constraint Balance
   #          Randomization (MaxEnt)
   #    randomization procedure parameter: 0.5
   #    number of simulations: 200

   restricted(c(31, 19), 50, "MaxEnt", 0.5, nsim = 200)

yevgenryeznik/restricted documentation built on May 26, 2019, 6:32 a.m.