Description Usage Arguments Details Value Author(s) References Examples
Searches for a Balanced Incomplete Block (BIB) cross-over design.
1 2 |
D |
The number of treatments. Must be a single
|
J |
The number of periods. Must be a single
|
K |
The number of sequences. Must be a single
|
labels |
A |
as_matrix |
A |
max_iter |
The maximum allowed number of iterations in the search
procedure. Must be a single |
summary |
A |
seq_bib()
uses the function optBlock
from the
AlgDesign
package to search for a BIB design.
Subject to the conditions described below, any number of sequences (see
K
), for any number of treatments (see D
) and periods (see
J
) 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 function optBlock
tries to find a
D-optimal block design for the specified parameters. The resulting design
need not be a BIB design. The necessary conditions for the existence are that
JK/D and
JK(J - 1)/(D(D -
1)): these are therefore enforced by the
function. However, even if they are fulfilled, there need not be a BIB
design. If no BIB design is found, the call to
optBlock
is iterated. If no BIB design is found
after max_iter
iterations, the search is terminated. The resulting
design should be checked by the user by applying the function
classify_seq
. 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 code from the crossdes
package by
Oliver Sailer.
Wheeler RE (2014) AlgDesign: Algorithmic Experimental Design. Version 1.1-7.3. URL: https://CRAN.R-project.org/package=AlgDesign.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.