| Title: | Duncan Test, Tukey Test and Scott-Knott Test |
|---|---|
| Description: | Functions to compare and group means, providing the Duncan test, the Tukey test and the Scott-Knott test as methods for fitted analysis of variance models. Compatibility updates by Renova. |
| Authors: | Laercio Junio da Silva [aut, cre] |
| Maintainer: | Laercio Junio da Silva <[email protected]> |
| License: | GPL (>= 3) |
| Version: | 1.0.1.9001 |
| Built: | 2026-11-16 22:18:49 UTC |
| Source: | https://github.com/renova-r/laercio |
The package contains functions to compare and group means.
| Package: | laercio |
| Type: | Package |
| Version: | 1.0-0 |
| Date: | 2008-09-07 |
| License: | GPL (>= 2) |
Laercio Junio da Silva
Maintainer: Laercio Junio da Silva [email protected]
Data only for to use in the examples.
Laercio Junio da Silva [email protected]
require(laercio) ldata$trat <- as.factor(ldata$trat) anv <- aov(resp~trat,ldata) anova(anv) LTukey(anv,"trat")require(laercio) ldata$trat <- as.factor(ldata$trat) anv <- aov(resp~trat,ldata) anova(anv) LTukey(anv,"trat")
Duncan test to compare means.
LDuncan(anova, which = "", conf.level = 0.95)LDuncan(anova, which = "", conf.level = 0.95)
anova |
A |
which |
A term in the fitted model for be used in the test. Defaults to all the terms. |
conf.level |
A numeric value between zero and one. Default is 0.95. |
Laercio Junio da Silva [email protected]
require(laercio) ldata$trat <- as.factor(ldata$trat) anv <- aov(resp~trat,ldata) anova(anv) LDuncan(anv,"trat")require(laercio) ldata$trat <- as.factor(ldata$trat) anv <- aov(resp~trat,ldata) anova(anv) LDuncan(anv,"trat")
Scott-Knott test to group means. This function was tested and it worked correctly for completely random design and randomized complete block design.
LScottKnott(anova, which, conf.level=0.95)LScottKnott(anova, which, conf.level=0.95)
anova |
A |
which |
The factor in the fitted model for be used in the test. |
conf.level |
A numeric value between zero and one. Default is 0.95. |
Laercio Junio da Silva [email protected]
GATES, C.E.; BILBRO, J.D. Illustration of a Cluster Analysis Method for Mean Separation. Agronomy Journal, Vol.70, May-June 1978.
#completely random design require(laercio) ldata$trat <- factor(ldata$trat) anv <- aov(resp~trat,ldata) anova(anv) LScottKnott(anv,"trat") #randomized complete block design require(laercio) ldata$trat <- factor(ldata$trat) ldata$block <- factor(ldata$block) anv <- aov(resp~trat+block,ldata) anova(anv) LScottKnott(anv,"trat") LScottKnott(anv,"block")#completely random design require(laercio) ldata$trat <- factor(ldata$trat) anv <- aov(resp~trat,ldata) anova(anv) LScottKnott(anv,"trat") #randomized complete block design require(laercio) ldata$trat <- factor(ldata$trat) ldata$block <- factor(ldata$block) anv <- aov(resp~trat+block,ldata) anova(anv) LScottKnott(anv,"trat") LScottKnott(anv,"block")
Tukey teste to compare means.
LTukey(anova, which = "", conf.level = 0.95)LTukey(anova, which = "", conf.level = 0.95)
anova |
A |
which |
A term in the fitted model for be used in the test. Defaults to all the terms. |
conf.level |
A numeric value between zero and one. Default is 0.95. |
Laercio Junio da Silva [email protected]
require(laercio) ldata$trat <- as.factor(ldata$trat) anv <- aov(resp~trat,ldata) anova(anv) LTukey(anv,"trat")require(laercio) ldata$trat <- as.factor(ldata$trat) anv <- aov(resp~trat,ldata) anova(anv) LTukey(anv,"trat")