Description Usage Arguments Value Note Examples
View source: R/dunnet_function.R
The function performs the Dunnett test
1 2 3 4 5 6 7 8 9 10 11 |
trat |
Numerical or complex vector with treatments |
resp |
Numerical vector containing the response of the experiment. |
control |
Treatment considered control (write identical to the name in the vector) |
model |
Experimental design (DIC, DBC or DQL) |
block |
Numerical or complex vector with blocks |
column |
Numerical or complex vector with columns |
line |
Numerical or complex vector with lines |
alpha.t |
Significance level (default is 0.05) |
label |
Variable label |
I return the Dunnett test for experiments in a completely randomized design, randomized blocks or Latin square.
Do not use the "-" symbol or space in treatment names
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #====================================================
# complete randomized design
#====================================================
data("pomegranate")
with(pomegranate,dunnett(trat=trat,resp=WL,control="T1"))
#====================================================
# randomized block design in factorial double
#====================================================
library(AgroR)
data(cloro)
attach(cloro)
respAd=c(268, 322, 275, 350, 320)
a=FAT2DBC.ad(f1, f2, bloco, resp, respAd,
ylab="Number of nodules",
legend = "Stages",mcomp="sk")
data=rbind(data.frame(trat=paste(f1,f2,sep = ""),bloco=bloco,resp=resp),
data.frame(trat=c("Test","Test","Test","Test","Test"),
bloco=unique(bloco),resp=respAd))
with(data,dunnett(trat = trat,
resp = resp,
control = "Test",
block=bloco,model = "DBC"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.