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

View source: R/diagnostic.checking.r

An alias for the generic function `residuals`

. When it is
available, the method `residuals.aovlist`

extracts residuals, which is provided
in the package dae to cover `aovlist`

objects.

1 |

`...` |
Arguments passed to |

A numeric `vector`

containing the residuals.

See `residuals.aovlist`

for specific information about the
residuals when an `Error`

function is used in the call to the
`aov`

function.

Chris Brien

`fitted.errors`

, `residuals.aovlist`

,
`tukey.1df`

in package dae.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
## set up data frame for randomized complete block design in Table 4.4 from
## Box, Hunter and Hunter (2005) Statistics for Experimenters. 2nd edn
## New York, Wiley.
RCBDPen.dat <- fac.gen(list(Blend=5, Flask=4))
RCBDPen.dat$Treat <- factor(rep(c("A","B","C","D"), times=5))
RCBDPen.dat$Yield <- c(89,88,97,94,84,77,92,79,81,87,87,
85,87,92,89,84,79,81,80,88)
## perform the analysis of variance
RCBDPen.aov <- aov(Yield ~ Blend + Treat + Error(Blend/Flask), RCBDPen.dat)
summary(RCBDPen.aov)
## two equivalent ways of extracting the residuals
res <- residuals.aovlist(RCBDPen.aov)
res <- residuals(RCBDPen.aov, error.term = "Blend:Flask")
res <- resid.errors(RCBDPen.aov)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.