Description Usage Arguments Value Author(s) References Examples
Simulates a clinical trial one time or multiple times with retricted randomizaion procedure
1 | restricted(w, nsbj, procedure, parameter = NA, nsim = 1)
|
w |
vector of fixed allocation ratio ((ir)rational or integers with GCD = 1). |
nsbj |
number of subjects to randomize. |
procedure |
name of randomization procedure |
parameter |
tuning parameter of randomization procedure (NA for |
nsim |
number of simulations (1 by default). |
In case of a single trial simulation (i.e. nsim
equals to 1) returns
a list with the following items items:
op
– a tibble (data frame) of operational characteristics:
forcing index, imbalance.
probability
– a tibble (data frame) of allocation probabilities at each step.
allocation
– a tibble (data frame) of subjects' allocations at each step.
observation
– a tibble (data frame) of treatment assignments.
In case of multiple trial simulations (i.e. nsim
larger than 1) returns
a list with the following items items:
op
– a tibble (data frame) of operational characteristics:
average forcing index (AFI), maximum imbalance (MI), momentum of probability
mass (MPM), cumulative momentum of probability mass (CMPM), and "average
standard deviation" of the allocation proportions (ASD).
probability
– a tibble (data frame) of unconditional allocation
probabilities at each step.
allocation
– a tibble (data frame) of distrbutions of the
subjects' allocations at each step.
observation
– a tibble (data frame) of distributions of treatment
assignments.
Yevgen Ryeznik (yevgen.ryeznik@gmail.com), Oleksandr Sverdlov
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.