
Implements unequally allocated complete randomization
Source:R/complete_randomization_and_blocking.R
imbalanced_complete_randomization.RdFor debugging, you can use set.seed
to be assured of deterministic output.
Arguments
- n
number of observations
- prop_T
the proportion of treatments needed
- r
number of randomized designs you would like
- form
Which form should it be in? The default is
one_zerofor 1/0's orpos_one_min_onefor +1/-1's.- seed
An integer which is the seed to be set within C++. Default is
NULLwhich means the seed is set from the system clock.