crdPlan: Completely randomized design (CRD)

Description Usage Arguments Author(s) Examples

View source: R/crdPlan.R

Description

levels of treatment are randomly assigned to the experimental units. Through randomization, every experimental unit has same probability of receiving any treatment. This provides a basis for making a valid estimate of random error which is so essential in testing of significance of genuine differences

Usage

1
crdPlan(treat, rep, seed)

Arguments

treat

numeric or complex vector containing treatments levels.

rep

numeric or complex vector containing thenumber of replications by treatment.

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
20
21
## 3 treatments with same number of replicates
crdPlan(treat = 3, rep = 4)

## 4 treatments with different number of replicates
crdPlan(treat = 4, rep = c(rep(4, 3), 6))

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

## End(Not run)

## Treatment with different replicates
design2 <- crdPlan(treat = paste("T", seq(1, 7, 1)),
                   rep = c(rep(6, 4),rep(7, 3)))
## Not run: 
buildShiny(design2)

## End(Not run)

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