Package 'laercio'

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

Help Index


Duncan test, Tukey test and Scott-Knott test.

Description

The package contains functions to compare and group means.

Details

Package: laercio
Type: Package
Version: 1.0-0
Date: 2008-09-07
License: GPL (>= 2)

Author(s)

Laercio Junio da Silva

Maintainer: Laercio Junio da Silva [email protected]


Data for examples

Description

Data only for to use in the examples.

Author(s)

Laercio Junio da Silva [email protected]

Examples

require(laercio)
ldata$trat <- as.factor(ldata$trat)
anv <- aov(resp~trat,ldata)
anova(anv)
LTukey(anv,"trat")

Duncan test

Description

Duncan test to compare means.

Usage

LDuncan(anova, which = "", conf.level = 0.95)

Arguments

anova

A aov fitted model object.

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.

Author(s)

Laercio Junio da Silva [email protected]

Examples

require(laercio)
ldata$trat <- as.factor(ldata$trat)
anv <- aov(resp~trat,ldata)
anova(anv)
LDuncan(anv,"trat")

Scott-Knott test

Description

Scott-Knott test to group means. This function was tested and it worked correctly for completely random design and randomized complete block design.

Usage

LScottKnott(anova, which, conf.level=0.95)

Arguments

anova

A aov fitted model object.

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.

Author(s)

Laercio Junio da Silva [email protected]

References

GATES, C.E.; BILBRO, J.D. Illustration of a Cluster Analysis Method for Mean Separation. Agronomy Journal, Vol.70, May-June 1978.

Examples

#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 test

Description

Tukey teste to compare means.

Usage

LTukey(anova, which = "", conf.level = 0.95)

Arguments

anova

A aov fitted model object.

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.

Author(s)

Laercio Junio da Silva [email protected]

Examples

require(laercio)
ldata$trat <- as.factor(ldata$trat)
anv <- aov(resp~trat,ldata)
anova(anv)
LTukey(anv,"trat")