resid.errors {dae} | R Documentation |
Extracts the residuals from error.term or, if error.term is not specified, the last error.term in the analysis.
resid.errors(aov.obj, error.term=NULL)
aov.obj |
An aov object or aovlist object created from a call to aov |
error.term |
The error.term for which the residuals are to be extracted |
A numeric vector containing the residuals
Only terms in the linear model will be included in the fitted values when computing the residuals. Terms in an Error function, but not in the model external to the Error function, will not be included. If you want them included, put them in both.
res <- resid.errors(crd.aov) rcbd.aov <- aov(Y ~ Blocks + Treats + Error(Blocks/Plots)) res <- resid.errors(rcbd.aov, error.term = "Blocks:Plots")