IBDgen {IBDInfer} | R Documentation |
Generating Incomplete Block Designs
Description
Generate incomplete block designs.
Usage
IBDgen(K, n.trt, t, n.vec = NULL, L = NULL, l = NULL, W = NULL, balanced = T)
Arguments
K |
The number of blocks. |
n.trt |
The number of whole treatments. |
t |
The number of treatments to be assigned to each block. |
n.vec |
The vector of block sizes. |
L |
The vector of the number of blocks having each treatment. |
l |
The matrix of the number of blocks having each pair of treatments. |
W |
The set of treatment subsets used in the design. |
balanced |
Whether the design is balanced or not. If |
Value
A list containing the following components:
W |
The set of treatment subsets used in the design. |
W.uniq |
The unique set of treatment subsets used in the design with proportion in |
Rk |
The block assignment matrix. |
blk_assign |
The block assignment data frame. |
References
Sailer, M. O., & Bornkamp, M. B. (2022). Package ‘crossdes’: Construction of Crossover Designs.
Examples
K <- 6
n.trt <- 3
t <- 2
n.vec <- rep(4, K)
IBDgen(K = K, n.trt = n.trt, t = t, n.vec = n.vec)
[Package IBDInfer version 0.0.1 Index]