Description Usage Arguments Details Value Author(s) References Examples
Specifies cross-over designs from Atkinson (1966).
1 | seq_atkinson(D = 3, labels = 0:(D - 1), as_matrix = T, summary = T)
|
D |
The number of treatments. Must be a single
|
labels |
A |
as_matrix |
A |
summary |
A |
seq_atkinson()
supports the specification of cross-over designs from
Atkinson (1966). Designs for three through five 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
).
Precisely, 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.
Atkinson GF (1966) Designs for sequences of treatments with carry-over effects. Biometrics 22:292-309.
1 2 3 4 5 6 | # Atkinson (1966) design for three treatments
atkinson <- seq_atkinson()
# Using different labels
atkinson_ABC <- seq_atkinson(labels = LETTERS[1:3])
# Returning in tibble form
atkinson_tibble <- seq_atkinson(as_matrix = F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.