Is it possible to have more than 2 groups for biased coin randomization?
If no, is there any modifications of biased coin randomization supporting multiple groups?
This is my R code for generating randomization sequence for 2
groups (this code works fine.):
library(randomizeR)
N <- 100
p <- 0.5
groups <- LETTERS[1:2]
main_path="c:/del/4/"
obj_my_par<-ebcPar(N, p, groups)
(ebc_seq<-genSeq(obj_my_par, r=1))
(mylist<-getRandList(ebc_seq))
table(mylist)
But if I change LETTERS[1:2]
to LETTERS[1:4]
(increase number of groups) I am getting error:
Error in validObject(.Object) :
invalid class “ebcPar” object: Length of groups is 4. Should have length 2.