# NOT RUN {
## The number of searches in the following examples have been limited for fast execution.
## In practice, the number of searches may need to be increased for optimum results.
## Designs should be rebuilt several times to check that a near-optimum design has been found.
# Completely randomized design for 6 treatments with 2 replicates and 1 control with 4 replicates
blocks(treatments=list(6,1),replicates=list(2,4))
# 12 treatments x 4 replicates in 4 complete blocks with 4 sub-blocks of size 3
# rectangular lattice see Plan 10.10 Cochran and Cox 1957.
# }
# NOT RUN {
blocks(treatments=12,replicates=4,blocks=list(4,4))
# }
# NOT RUN {
# 3 treatments x 2 replicates + 2 treatments x 4 replicates in two complete randomized blocks
blocks(treatments=list(3,2),replicates=list(2,4),blocks=2)
# 50 treatments x 4 replicates with 4 main blocks and 5 nested sub-blocks in each main block
blocks(treatments=50,replicates=4,blocks=list(4,5))
# as above but with 20 additional single replicate treatments, one single treatment per sub-block
# }
# NOT RUN {
blocks(treatments=list(50,20),replicates=list(4,1),blocks=list(4,5))
# }
# NOT RUN {
# 6 replicates of 6 treatments in 4 blocks of size 9 (non-binary block design)
blocks(treatments=6,replicates=6,blocks=4)
# 128 treatments x 2 replicates with two main blocks and 3 levels of nesting
# }
# NOT RUN {
blocks(128,2,list(2,2,2,2))
# }
# NOT RUN {
# 64 treatments x 4 replicates with 4 main blocks, 8 nested sub-blocks of size 8
# (lattice), 16 nested sub-sub blocks of size 4 and 32 nested sub-sub-sub blocks of size 2
# }
# NOT RUN {
blocks(64,4,list(4,8,2,2))
# }
# NOT RUN {
# 100 treatments x 4 replicates with 4 main blocks nested blocks of size 10 (lattice square)
blocks(100,4,list(4,10))
# }
Run the code above in your browser using DataLab