menu_factorial {edibble}R Documentation

Prepare a factorial design

Description

Prepare a factorial design

Usage

menu_factorial(
  trt = c(random_integer_small(), random_integer_small()),
  r = random_integer_small(),
  design = c("crd", "rcbd"),
  seed = random_seed_number()
)

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.

Value

A recipe for factorial design.

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")

[Package edibble version 0.1.2 Index]