For debugging, you can use set.seed
to be assured of deterministic output. The following quantities
in this design must be integer valued or an error will be thrown:
n_B := n / B and n_B * prop_T
imbalanced_block_designs(n, prop_T, B, r, form = "one_zero")
a matrix where each column is one of the r
designs
number of observations
the proportion of treatments needed
the number of blocks
number of randomized designs you would like
Which form should it be in? The default is one_zero
for 1/0's or pos_one_min_one
for +1/-1's.
Adam Kapelner