Learn R Programming

agricolae (version 1.0-4)

design.graeco: 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 for squares of the odd numbers and even numbers (4, 8 and 12)

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

Value

  • trt1vector, name of the treatments
  • trt2vector, name of the treatments
  • numberNumeric
  • seedNumeric

Details

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

References

1. Statistics for Experimenters Design, Innovation, and Discovery Second Edition. George E. P. Box. Wiley-Interscience. 2005. 2. Experimental design. Cochran and Cox. Second edition. Wiley Classics Library Edition published 1992.

See Also

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

Examples

Run this code
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))

Run the code above in your browser using DataLab