allcombs {crossdes} | R Documentation |
The function constructs a row-column design with subjects as rows and periods as columns. Each subject gets each treatment at most once. All possible treatment orders are assigned to the subjects.
allcombs(trt, k)
trt |
An integer > 1. Number of treatments (products) to be tested. |
k |
An integer |
The design is a carryover balanced generalized Youden design that is uniform on the columns.
The treatments are numbered 1,...,trt
. The entry (i,j)
of the design corresponds to the treatment the i
-th subject gets in the j
-th period.
A matrix with \frac{trt!}{(trt-k)!}
rows and k
columns representing the experimental design.
Requires the package gtools
.
Oliver Sailer
Patterson, H.D. (1952): The construction of balanced designs for experiments involving sequences of treatments. Biometrika 39, 32-48.
Wakeling, I.N. and MacFie, H.J.H. (1995): Designing consumer trials balanced for first and higher orders of carry-over effect when only a subset of k samples from t may be tested. Food Quality and Preference 6, 299-308.
# Design for 4 treatments assigned in 3 periods.
# All possible treatment orders occur.
allcombs(4,3)