sketch: Utils: Experimental sketch

Description Usage Arguments Value Note Author(s) References Examples

View source: R/croqui_function.R

Description

Experimental sketching function

Usage

1
sketch(trat, trat1 = NULL, trat2 = NULL, r, design = "dic", pos = "line")

Arguments

trat

Vector with factor A levels

trat1

Vector with levels of factor B (Set to NULL if not factorial or psub)

trat2

Vector with levels of factor C (Set to NULL if not factorial)

r

Number of repetitions

design

Experimental design ("dic", "dbc", "dql","psubdic","psubdbc","fat2dic","fat2dbc")

pos

Repeat position (line or column)

Value

Returns an experimental sketch according to the specified design.

Note

The sketches have only a rectangular shape, and the blocks (in the case of randomized blocks) can be in line or in a column.

Author(s)

Gabriel Danilo Shimizu, shimizu@uel.br

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

References

Mendiburu, F., & de Mendiburu, M. F. (2019). Package ‘agricolae’. R Package, Version, 1-2.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Trat=paste("Tr",1:6)

#=============================
# Completely randomized design
#=============================
sketch(Trat,r=3)
sketch(Trat,r=3,pos="column")

#=============================
# Randomized block design
#=============================
sketch(Trat, r=3, design="dbc")
sketch(Trat, r=3, design="dbc",pos="column")

#=============================
# Completely randomized experiments in double factorial
#=============================
sketch(trat=c("A","B"),
       trat1=c("A","B","C"),
       design = "fat2dic",
       r=3)

sketch(trat=c("A","B"),
       trat1=c("A","B","C"),
       design = "fat2dic",
       r=3,
       pos="column")

AgronomiaR/AgroR documentation built on Nov. 14, 2021, 12:10 a.m.