powered by
Latin square designs and its generalisations as an array
latin_square(n, randomise = TRUE)latin_rectangle(nr, nc, nt, randomise = TRUE)latin_array(dim, nt, randomise = TRUE)
latin_rectangle(nr, nc, nt, randomise = TRUE)
latin_array(dim, nt, randomise = TRUE)
The number of treatments
A logical value to indicate whether the treatment allocation should be randomised. The default value is TRUE.
TRUE
The number of rows
The number of columns
A vector of integers to indicate the number of elements in each dimension.
latin_square(): Latin square design
latin_square()
latin_rectangle(): Like a Latin square design but allow different number of rows and columns
latin_rectangle()
latin_array(): Returns an array where it stitches up multiple Latin square/rectangle design
latin_array()
latin_square(n = 3) latin_rectangle(3, 3, 3) latin_array(c(3, 3, 3), 3)
Run the code above in your browser using DataLab