Prepare a factorial design
Arguments
- trt
A vector of the number of levels for each treatment factor.
- r
The number of replications for each treatment level.
- design
The unit structure: "crd" or "rcbd". The default is "crd".
- seed
A scalar value for computational reproducibility.
See also
Other recipe-designs:
menu_bibd()
,
menu_crd()
,
menu_graeco()
,
menu_hyper_graeco()
,
menu_lsd()
,
menu_rcbd()
,
menu_split()
,
menu_strip()
,
menu_youden()
Examples
menu_factorial(trt = c(3, 2), r = 2, design = "crd")
#> design("Factorial Design") %>%
#> set_units(unit = 12) %>%
#> set_trts(trt1 = 3,
#> trt2 = 2) %>%
#> allot_trts(~unit) %>%
#> assign_trts("random", seed = 752) %>%
#> serve_table()