Description Usage Arguments Details Value Author(s) References Examples
Specifies either a complete set of Mutually Orthogonal Latin Squares (MOLS), or a single cross-over design based on a complete set of MOLS.
1 2 |
D |
The number of treatments. Must be a single
|
type |
Must be either |
J |
When |
labels |
A |
as_matrix |
A |
summary |
A |
seq_mols()
supports the specification of either a complete set of
MOLS, or a single cross-over design based on such a set (see type
).
Designs for any prime power number of treatments (see D
) are
supported, for any chosen treatment labels (see labels
). In
addition, the designs can be returned in matrix
or
tibble
form (see as_matrix
). When a single
cross-over design is to be returned, the number of periods can be any integer
between two and D
. Ultimately,
the (k,j)th
element of the cross-over design matrix/matrices corresponds to the treatment
a subject on the kth sequence would
receive in the jth period.
The complete set of MOLS is constructed using Galois fields. In the case that
type = "set"
, D - 1 Latin
Squares of order D will be constructed.
They will be mutually orthogonal, i.e., if any two of them are super-imposed,
the resulting array will contain each ordered pair
(d1,d2
) exactly once. The Latin Squares will be in
standard order, i.e., the first sequence is always equal to the specified
treatment labels. Otherwise, when type = "single"
, the resulting
design will have D(D - 1)
sequences, and each treatment will appear in each sequence at most once. The
design will be a generalized Youden design that is also balanced for
carryover effects.
If type = "single"
: Either a matrix
if
as_matrix = T
(with rows corresponding to sequences and columns to
periods), or a tibble
if as_matrix = F
(with
rows corresponding to a particular period on a particular sequence).
Otherwise, if type = "set"
, a list consisting of either matrices or
tibbles, again dependent on the value of as_matrix
. In either case,
the returned object(s) will have class xover_seq
.
Based on functions from the crossdes
package
by Oliver Sailer.
Wakeling IN, MacFie HJH (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 Qual Prefer 6:299-308.
Williams EJ (1949) Experimental designs balanced for the estimation of residual effects of treatments. Aust J Sci Res Ser A 2:149-168.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.