design.ab {agricolae}R Documentation

Design in blocks for factorial pxq

Description

It generates a design of blocks for combined pxq. "Random" uses the methods of number generation in R. The seed is by set.seed(seed, kinds).

Usage

design.ab(A, B, r, number = 1, seed = 0, kinds = "Super-Duper")

Arguments

A Levels of A
B Levels of B
r Replications or Blocks
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

A vector, name of the levels of the first factor
B vector, name of the levels of the second factor
r Numeric
number Numeric
seed Numeric

Author(s)

Felipe de Mendiburu

References

Introduction to Experimental Statistics. Ching Chun Li. McGraw-Hill Book Company, INC, New. York, 1964

See Also

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

Examples

# factorial 3 x 3 with 5 replications
# 3 varieties from potato and nitrogen in the fertilization, kg/ha
library(agricolae)
variety <- c("perricholi","canchan","tomasa")
nitrogen <- c(40,80,120) # level of nitrogen
rcbd.ab <-design.ab(variety, nitrogen, 5, number=1001)
print(rcbd.ab) # print of the field book


[Package agricolae version 1.0-6 Index]