Skip to contents

Prepare a randomised complete block design

Usage

menu_rcbd(
  t = random_integer_small(),
  r = random_integer_small(),
  seed = random_seed_number()
)

Arguments

t

The number of treatments.

r

The number of replications for each treatment level.

seed

A scalar value for computational reproducibility.

Value

A recipe for randomised complete block design.

See also

Examples

menu_rcbd(t = 3, r = 2)
#> design("Randomised Complete Block Design") %>%
#>   set_units(block = 2,
#>             unit = nested_in(block, 3)) %>%
#>   set_trts(trt = 3) %>%
#>   allot_trts(trt ~ unit) %>%
#>   assign_trts("random", seed = 893) %>%
#>   serve_table()