Description Usage Arguments Details Value Author(s) References Examples
Specifies a cross-over design from Anderson (2002).
1 | seq_anderson(labels = 0:6, as_matrix = T, summary = T)
|
labels |
A |
as_matrix |
A |
summary |
A |
seq_anderson()
supports the specification of a cross-over design from
Anderson (2002). Sequences are supported for any chosen treatment labels (see
labels
). In addition, the design can be returned in
matrix
or tibble
form (see
as_matrix
).
Precisely, a set of 42 sequences are returned, for a design with 14 periods and seven treatments. Ultimately, the (k,j)th element of the cross-over design matrix corresponds to the treatment a subject on the kth sequence would receive in the jth period.
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). In either case, the
returned object will have class xover_seq
.
Based on data from the Crossover
package by
Kornelius Rohmeyer.
Anderson I (2002) Training schedule design. Personal Communication.
1 2 3 4 | # Anderson (2002) design for the default parameters
anderson <- seq_anderson()
# Using different labels
anderson_ABCDEFG <- seq_anderson(labels = LETTERS[1:7])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.