Randomization

randomseq

ClinicalTrialUtilities.randomseqFunction
randomseq(;blocksize = 4, subject = 10, group = 2, ratio = [1,1],  seed = 0, rng = Random.GLOBAL_RNG)

Randomization list generaton.

  • $blocksize$ - size of block;
  • $subject$ - subject number;
  • $group$ - number of groups;
  • $ratio$ - group ration, [1,1] means 1:1, [1,2] means 1:2, ets. $length(ratio)$ should be equal $group$;
  • $seed$ - RNG seed;
  • $rng$ - random number generator.
source

randomtable

ClinicalTrialUtilities.randomtableFunction
randomtable(;blocksize = 4, subject = 10, group = 2,
    ratio = [1,1], grseq = ["AB", "BA"], seed = 0, rng = Random.GLOBAL_RNG)

Randomization table generaton. Return NamedTuple of vectors.

  • $blocksize$ - size of block;
  • $subject$ - subject number;
  • $group$ - number of groups;
  • $ratio$ - group ration, [1,1] means 1:1, [1,2] means 1:2, ets. $length(ratio)$ should be equal $group$;
  • $grseq$ - treatment sequence in each group;
  • $seed$ - RNG seed;
  • $rng$ - random number generator.
source