design.lsd {agricolae} | R Documentation |
It generates Latin Square Design. "Random" uses the methods of number generation in R. The seed is by set.seed(seed, kinds).
design.lsd(trt, number = 1, seed = 0, kinds = "Super-Duper")
trt |
Treatments |
number |
number of first plot |
seed |
seed |
kinds |
method for to randomize |
kinds <- c("Wichmann-Hill", "Marsaglia-Multicarry", "Super-Duper", "Mersenne-Twister", "Knuth-TAOCP", "user-supplied", "Knuth-TAOCP-2002", "default" )
trt |
Vector names of treatments |
number |
Numeric |
seed |
Numeric |
Felipe de Mendiburu
Introduction to Experimental Statistics. Ching Chun Li. McGraw-Hill Book Company, INC, New. York, 1969
design.crd
, design.rcbd
, random.ab
,
fact.nk
library(agricolae) varieties<-c("perricholi","yungay","maria bonita","tomasa") lsd <-design.lsd(varieties,number=1001,seed=23) lsd # print field book. plots <-as.numeric(lsd[,1]) trt <-as.character(lsd[,4]) dim(plots)<-c(4,4) dim(trt) <-c(4,4) print(t(plots)) print(t(trt)) # Write on hard disk. # write.table(lsd,"lsd.txt", row.names=FALSE, sep="\t") # file.show("lsd.txt")