design.graeco {agricolae}R Documentation

Graeco - latin square design

Description

A graeco - latin square is a KxK pattern that permits the study of k treatments simultaneously with three different blocking variables, each at k levels.

The function is only squares of sizes 3x3, 4x4, 5x5, 7x7, 9x9,...

Usage

design.graeco(trt1, trt2, number = 1, seed = 0, kinds = "Super-Duper")

Arguments

trt1 Treatments
trt2 Treatments
number number of first plot
seed seed
kinds method for to randomize

Details

kinds <- c("Wichmann-Hill", "Marsaglia-Multicarry", "Super-Duper", "Mersenne-Twister", "Knuth-TAOCP", "user-supplied", "Knuth-TAOCP-2002", "default" )

Value

trt1 vector, name of the treatments
trt2 vector, name of the treatments
number Numeric
seed Numeric

Author(s)

Felipe de Mendiburu

References

Statistics for Exoperimenters Design, Innovation, and Discovery Second Edition. George E. P. Box. Wiley-Interscience. 2005.

See Also

design.crd, design.lsd, random.ab, fact.nk

Examples

library(agricolae)
T1<-c("a","b","c","d")
T2<-c("v","w","x","y")
greco <-  design.graeco(T1,T2,number=101)
plots <-as.numeric(greco[,1])
trt <- paste(greco[,4],greco[,5])
dim(plots)<-c(4,4)
dim(trt) <-c(4,4)
print(t(plots))
print(t(trt))

[Package agricolae version 1.0-3 Index]