plotres: Residual plots

Description Usage Arguments Author(s) References See Also Examples

View source: R/plotres.R

Description

plotres Residual plots for a output model. Four sets of plots are produced: (1) Histogram, (2) normal probability plot for the residual, (3) Standardized Residuals versus Fitted Values, and (4) box-plot (Standardized Residuals).

Usage

1

Arguments

x

Output from anova (performed in ExpDes).

Author(s)

Eric B Ferreira, eric.ferreira@unifal-mg.edu.br @author Denismar Alves Nogueira @note The default produces four plots regarding the ANOVA assumptions.

References

STEEL, R. G. D.; TORRIE, J. H. Principles and procedures in Statistics: a biometrical approach. McGraw-Hill, New York, NY. 1980.

See Also

graphics.

Examples

1
2
3
4
data(ex1)
attach(ex1)
a<-crd(trat, ig)
plotres(a)

Example output

Attaching package: 'ExpDes'

The following object is masked from 'package:stats':

    ccf

------------------------------------------------------------------------
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.
------------------------------------------------------------------------

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

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 Oct. 5, 2021, 9:09 a.m.

Related to plotres in ExpDes...