lsd: Multiple comparison: Least Significant Difference test

Description Usage Arguments Value Author(s) See Also Examples

Description

lsd Performs the t test (LSD) for multiple comparison of means.

Usage

1
lsd(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 LSD test.

Author(s)

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

Denismar Alves Nogueira

Portya Piscitelli Cavalcanti

See Also

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

Examples

1
2
3
data(ex1)
attach(ex1)
crd(trat, ig, quali = TRUE, mcomp = "lsd", 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.
------------------------------------------------------------------------

T test (LSD)
------------------------------------------------------------------------
Groups  Treatments  Means
a 	 0 	 102.1983 
 b 	 10 	 96.74333 
 b 	 5 	 95.05833 
 b 	 15 	 94.74333 
------------------------------------------------------------------------

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

Related to lsd in ExpDes...