Skip to contents

designs() lists the 16 designs that design_anova() analyses; designs("layout") lists the 16 designs that make_design() randomises, with the arguments each one needs and the design to give to design_anova() once the responses are in the field book.

Usage

designs(type = c("analysis", "layout"))

Arguments

type

"analysis" (designs of design_anova()) or "layout" (designs of make_design()).

Value

A data frame. For "analysis": the identifier of each design (the value to pass to design = in design_anova()), its name, the number of treatment factors and block columns, and whether it needs rows and columns. For "layout": the identifier (the first argument of make_design()), its name, the arguments it needs (in parentheses when optional), its conditions and the design of design_anova() that analyses its field book.

Details

Designs analysed by design_anova() (design =):

idDesignRoles
crdCompletely randomisedtreatment
rcbdRandomised complete blockstreatment, block
grcbdGeneralised RCBD (replicates within blocks)treatment, block
latinLatin squaretreatment, row, col
graecoGraeco-Latin squaretreatment, row, col, block (Greek letters)
youdenYouden squaretreatment, row, col
bibIncomplete blocks (BIBD, cyclic)treatment, block
ibdResolvable incomplete blocks (lattice, alpha)treatment, block = c(rep, block)
augmentedAugmented (checks and new entries)treatment, block
fact_crdFactorial in CRD (2 to 4 factors)treatment = c(A, B, ...)
fact_rcbdFactorial in RCBD (2 to 4 factors)treatment = c(A, B, ...), block
split_rcbdSplit-plot in RCBDtreatment = c(main, sub), block
split_crdSplit-plot in CRDtreatment = c(main, sub), block (replicate)
strip_rcbdStrip-plot (split-block)treatment = c(A, B), block
splitsplit_rcbdSplit-split-plot in RCBDtreatment = c(main, sub, sub-sub), block
nestedNested (hierarchical)treatment = c(outer, inner)

Designs randomised by make_design() (first argument; C is optional in factorials, and the conditions on the number of treatments and the block size are in the conditions column of designs("layout")):

idDesignArgumentsAnalyse as
crdCompletely randomisedtrt, rcrd
rcbdRandomised complete blockstrt, rrcbd
latinLatin squaretrtlatin
graecoGraeco-Latin squaretrt, greekgraeco
youdenYouden squaretrt, kyouden
bibBalanced incomplete blockstrt, kbib
cyclicCyclic incomplete blockstrt, k, rbib
ibdResolvable incomplete blockstrt, k, ribd
alphaAlpha designtrt, k, ribd
latticeSquare latticetrt, k, ribd
augmentedAugmentedchecks, entries, raugmented
fact_crdFactorial in CRDA, B, C, rfact_crd
fact_rcbdFactorial in RCBDA, B, C, rfact_rcbd
split_rcbdSplit-plot in RCBDA, B, rsplit_rcbd
stripStrip-plotA, B, rstrip_rcbd
splitsplitSplit-split-plotA, B, C, rsplitsplit_rcbd

Examples

designs()
#>                 id
#> 1              crd
#> 2             rcbd
#> 3            grcbd
#> 4            latin
#> 5           graeco
#> 6           youden
#> 7              bib
#> 8              ibd
#> 9        augmented
#> 10        fact_crd
#> 11       fact_rcbd
#> 12      split_rcbd
#> 13       split_crd
#> 14      strip_rcbd
#> 15 splitsplit_rcbd
#> 16          nested
#>                                                                                 name
#> 1                                                 Completely randomised design (CRD)
#> 2                                            Randomised complete block design (RCBD)
#> 3                             Generalised RCBD (several plots per block x treatment)
#> 4                                                                       Latin square
#> 5                                                                Graeco-Latin square
#> 6                      Youden square (incomplete Latin square), intra-block analysis
#> 7  Incomplete blocks without replicate grouping (BIBD, cyclic), intra-block analysis
#> 8               Incomplete block design (lattice, alpha, BIBD), intra-block analysis
#> 9                        Augmented design (replicated checks + unreplicated entries)
#> 10                                                                  Factorial in CRD
#> 11                                                                 Factorial in RCBD
#> 12                                         Split-plot in RCBD (main plots in blocks)
#> 13                              Split-plot in CRD (main plots completely randomised)
#> 14                                                  Strip-plot (split-block) in RCBD
#> 15                                                          Split-split-plot in RCBD
#> 16                             Nested (hierarchical): second factor within the first
#>    treatments blocks row_col
#> 1           1      0   FALSE
#> 2           1      1   FALSE
#> 3           1      1   FALSE
#> 4           1      0    TRUE
#> 5           1      1    TRUE
#> 6           1      0    TRUE
#> 7           1      1   FALSE
#> 8           1      2   FALSE
#> 9           1      1   FALSE
#> 10        2-4      0   FALSE
#> 11        2-4      1   FALSE
#> 12          2      1   FALSE
#> 13          2      1   FALSE
#> 14          2      1   FALSE
#> 15          3      1   FALSE
#> 16          2      0   FALSE
designs("layout")
#>            id
#> 1         crd
#> 2        rcbd
#> 3       latin
#> 4    fact_crd
#> 5   fact_rcbd
#> 6  split_rcbd
#> 7       strip
#> 8  splitsplit
#> 9         ibd
#> 10  augmented
#> 11     graeco
#> 12     youden
#> 13        bib
#> 14     cyclic
#> 15      alpha
#> 16    lattice
#>                                                                        name
#> 1                                        Completely randomised design (CRD)
#> 2                                   Randomised complete block design (RCBD)
#> 3                                                              Latin square
#> 4                                                          Factorial in CRD
#> 5                                                         Factorial in RCBD
#> 6                                                        Split-plot in RCBD
#> 7                                          Strip-plot (split-block) in RCBD
#> 8                                                  Split-split-plot in RCBD
#> 9  Resolvable incomplete blocks (random blocks of size k within replicates)
#> 10          Augmented design (checks in every block + unreplicated entries)
#> 11                                                      Graeco-Latin square
#> 12                                                            Youden square
#> 13                                  Balanced incomplete block design (BIBD)
#> 14                                           Cyclic incomplete block design
#> 15                              Alpha design (resolvable incomplete blocks)
#> 16                                                           Square lattice
#>                 needs
#> 1              trt, r
#> 2              trt, r
#> 3                 trt
#> 4         A, B (C), r
#> 5         A, B (C), r
#> 6             A, B, r
#> 7             A, B, r
#> 8          A, B, C, r
#> 9           trt, k, r
#> 10 checks, entries, r
#> 11        trt (greek)
#> 12             trt, k
#> 13             trt, k
#> 14          trt, k, r
#> 15          trt, k, r
#> 16          trt, k, r
#>                                                                     conditions
#> 1                                                                             
#> 2                                                                             
#> 3                                        rows = columns = number of treatments
#> 4                                               all combinations of the levels
#> 5                                all combinations of the levels in every block
#> 6                                              A on main plots, B on sub-plots
#> 7                                 A in horizontal strips, B in vertical strips
#> 8                          A on main plots, B on sub-plots, C on sub-sub-plots
#> 9  treatments a multiple of k; each replicate split at random into blocks of k
#> 10                                      checks in every block, each entry once
#> 11                                         odd number of treatments, or 4 or 8
#> 12                                       k rows, as many columns as treatments
#> 13                             every pair of treatments together equally often
#> 14                                                           r a multiple of k
#> 15                          treatments a multiple of k and k <= treatments / k
#> 16                                                            treatments = k^2
#>         analyse_as
#> 1              crd
#> 2             rcbd
#> 3            latin
#> 4         fact_crd
#> 5        fact_rcbd
#> 6       split_rcbd
#> 7       strip_rcbd
#> 8  splitsplit_rcbd
#> 9              ibd
#> 10       augmented
#> 11          graeco
#> 12          youden
#> 13             bib
#> 14             bib
#> 15             ibd
#> 16             ibd

# the layout reports the call that analyses it
make_design("strip", A = c("Drip", "Furrow"), B = c("V1", "V2", "V3"), r = 3, seed = 1)$analysis
#> [1] "design_anova(data, \"response\", c(\"A\", \"B\"), block = \"Block\", design = \"strip_rcbd\")"