Skip to contents

Completely randomised design

Usage

menu_crd(
  t = random_integer_small(),
  n = random_integer_medium(min = t),
  r = NULL,
  seed = random_seed_number()
)

Arguments

t

The number of treatment levels

n

The number of experimental units

r

(Optional) The number of replicates.

seed

A scalar value for computational reproducibility.

Value

A recipe for completely randomised design.

See also

Examples

menu_crd(t = 3, n = 10)
#> design("Completely Randomised Design") %>%
#>   set_units(unit = 10) %>%
#>   set_trts(trt = 3) %>%
#>   allot_trts(trt ~ unit) %>%
#>   assign_trts("random", seed = 786) %>%
#>   serve_table()