Skip to contents

Some combinations of parameter values cannot create a balanced incomplete block design.

Usage

menu_bibd(
  t = random_integer_small(min = 3),
  k = random_integer_small(max = t - 1),
  r = random_integer_small(),
  seed = random_seed_number()
)

Arguments

t

The number of treatments.

k

The size of the block. This should be less than the number of treatments.

r

The number of replications for each treatment level.

seed

A scalar value for computational reproducibility.

Value

A recipe for balance incomplete block design.

See also

Examples

menu_bibd(t = 3, k = 2, r = 4)
#> design("Balanced Incomplete Block Design") %>%
#>   set_units(block = 6,
#>             unit = nested_in(block, 2)) %>%
#>   set_trts(trt = 3) %>%
#>   allot_trts(trt ~ unit) %>%
#>   assign_trts("random", seed = 208) %>%
#>   serve_table()