scottknott: Multiple comparison: Scott-Knott test

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

View source: R/scottknott.R

Description

scottknott Performs the test of Scott-Knott, for multiple comparison of means.

Usage

1
scottknott(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.

Value

Returns the multiple comparison of means according to the test of Scott-Knott.

Author(s)

Eric B Ferreira, eric.ferreira@unifal-mg.edu.br

Denismar Alves Nogueira

Portya Piscitelli Cavalcanti (Adapted from Laercio Junio da Silva - GPL(>=2))

References

RAMALHO, M. A. P.; FERREIRA, D. F.; OLIVEIRA, A. C. de. Experimentacao em Genetica e Melhoramento de Plantas. 2a ed. Lavras: UFLA. 2005. 300p.

See Also

snk, duncan, lsd, lsdb, ccboot, tukey, ccF.

Examples

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

Example output

Attaching package:ExpDesThe following object is masked frompackage:stats:

    ccf

------------------------------------------------------------------------
Analysis of Variance Table
------------------------------------------------------------------------
           DF     SS MS     Fc     Pr>Fc
Treatament  3 214.88  3 6.5212 0.0029622
Residuals  20 219.67  2                 
Total      23 434.55  1                 
------------------------------------------------------------------------
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.
------------------------------------------------------------------------

------------------------------------------------------------------------
Homogeneity of variances test
p-value:  0.1863216 
According to the test of bartlett at 5% of significance, residuals can be considered homocedastic.
------------------------------------------------------------------------

Scott-Knott test
------------------------------------------------------------------------
  Groups Treatments     Means
1      a          0 102.19833
2      b         10  96.74333
3      b          5  95.05833
4      b         15  94.74333
------------------------------------------------------------------------

ExpDes documentation built on Oct. 5, 2021, 9:09 a.m.

Related to scottknott in ExpDes...