Description Usage Arguments Details Value Author(s) References Examples
View source: R/seq_quenouille.R
Specifies cross-over designs from Quenouille (1953).
1 2 | seq_quenouille(D = 3, selection = 1, labels = 0:(D - 1),
as_matrix = T, summary = T)
|
D |
The number of treatments. Must be either three or four. Defaults to
|
selection |
A single |
labels |
A |
as_matrix |
A |
summary |
A |
seq_quenouille()
supports the specification of designs from
Quenouille (1953). Designs for three or four 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, for D = 3
, two designs are available (accessible by setting
selection
equal to one or two), and for D = 4
, three designs
are available (accessible by setting selection
equal to one, two, or
three). Ultimately, the
(k,j)th element of the
cross-over design matrix corresponds to the treatment a subject on the
ifelsehtmlkkth 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.
Quenouille MH (1953) The Design and Analysis of Experiments. Griffin: London.
1 2 3 4 5 6 7 8 9 | # Quenouille (1953) designs for three treatments
quenouille1 <- seq_quenouille()
quenouille2 <- seq_quenouille(selection = 2)
# Using different labels
quenouille1_ABC <- seq_quenouille(labels = LETTERS[1:3])
quenouille2_ABC <- seq_quenouille(selection = 2, labels = LETTERS[1:3])
# Returning in tibble form
quenouille1_tibble <- seq_quenouille(as_matrix = F)
quenouille2_tibble <- seq_quenouille(selection = 2, as_matrix = F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.