powered by
Randomly draws a specified number of assignment vectors or matrices according to a completely randomized design.
completeRand(w, nrand)
a vector or matrix of assignments.
a number specifying the desired number of random assignments.
A list of random assignment vectors or matrices.
If w is a matrix, the permutations occur by row.
w
blockRand, latinRand
blockRand
latinRand
# NOT RUN { w1 <- c(0, 0, 0, 0, 1, 1, 1, 1) completeRand(w1, nrand = 5) w2 <- c(0, 1, 0, 1, 0, 1, 0, 1) completeRand(w = cbind(w1, w2), nrand = 5) # }
Run the code above in your browser using DataLab