Description Usage Arguments Value Note Author(s) References Examples
View source: R/croqui_function.R
Experimental sketching function
1 |
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) |
Returns an experimental sketch according to the specified design.
The sketches have only a rectangular shape, and the blocks (in the case of randomized blocks) can be in line or in a column.
Gabriel Danilo Shimizu, shimizu@uel.br
Leandro Simoes Azeredo Goncalves
Rodrigo Yudi Palhaci Marubayashi
Mendiburu, F., & de Mendiburu, M. F. (2019). Package ‘agricolae’. R Package, Version, 1-2.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.