rcbdPlan: Randomized Complete Block Design (RBD)

Description Usage Arguments Author(s) Examples

View source: R/rcbdPlan.R

Description

levels of treatment are randomly assigned to the experimental units within blocks. We assuming that blocks have a systematic effect on the statistical comparisons among treatements. Through randomization, every experimental unit within block has same probability of receiving any treatement. The word 'complete' indicates that each block (group) contains all treatments.

Usage

1
rcbdPlan(treat, blocks, seed)

Arguments

treat

numeric or complex vector containing treatments levels.

blocks

numeric or complex vector containing blocks levels.

seed

A single numeric value, interpreted as an integer, that specifies the starting value of the random number generator.

Author(s)

Thiago de Paula Oliveira, thiago.paula.oliveira@usp.br

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 3 treatments and 4 blocks
rcbdPlan(treat = 3, blocks = 4)

## Running the shiny app
treat <- LETTERS[seq( from = 1, to = 10 )]
design <- rcbdPlan(treat = treat, block = 6)
## Not run: 
buildShiny(design)

## End(Not run)

## Priori for treatment means
blocks <- paste("Block ", seq(1, 6, 1))
treat <- LETTERS[seq( from = 1, to = 6 )]
design2 <- rcbdPlan(treat = treat, blocks = blocks)
## Not run: 
buildShiny(design2)

## End(Not run)

Prof-ThiagoOliveira/planExp documentation built on July 5, 2020, 11 a.m.