tukey: Multiple comparison: Tukey's test

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/tukey.R

Description

Performs the test of Tukey, for multiple comparison of means.

Usage

1
tukey(y, trt, DFerror, SSerror, alpha = 0.05, group = TRUE, main = NULL)

Arguments

y

Numeric or complex vector containing the response variable.

trt

Numeric or complex vector containing the treatments.

DFerror

Error degrees of freedom.

SSerror

Error sum of squares.

alpha

Significance level.

group

TRUE or FALSE

main

Title

Details

It is necessary first makes a analysis of variance.

Value

y Numeric trt factor DFerror Numeric MSerror Numeric alpha Numeric group Logic main Text

Author(s)

Denismar Alves Nogueira

Eric Batista Ferreira

Portya Piscitelli Cavalcanti

(Adapted from Felipe de Mendiburu - GPL)

References

Principles and procedures of statistics a biometrical approach Steel and Torry and Dickey. Third Edition 1997

See Also

snk, duncan, lsd, lsdb, ccboot, scottknott, ccf

Examples

1
2
3
data(ex1)
attach(ex1)
crd(trat, ig, quali = TRUE, mcomp='tukey', sigT = 0.05)

Example output

------------------------------------------------------------------------
Analysis of Variance Table
------------------------------------------------------------------------
           DF     SS     MS     Fc     Pr>Fc
Treatament  3 214.88 71.626 6.5212 0.0029622
Residuals  20 219.67 10.984                 
Total      23 434.55                        
------------------------------------------------------------------------
CV = 3.41 %

------------------------------------------------------------------------
Shapiro-Wilk normality test
p-value:  0.91697 
According to Shapiro-Wilk normality test at 5% of significance, residuals can be considered normal.
------------------------------------------------------------------------

Tukey's test
------------------------------------------------------------------------
Groups Treatments Means
a 	 0 	 102.1983 
 b 	 10 	 96.74333 
 b 	 5 	 95.05833 
 b 	 15 	 94.74333 
------------------------------------------------------------------------

ExpDes documentation built on May 18, 2018, 1:03 a.m.