Description Usage Arguments Details Value Author(s) References See Also Examples
For a linear model object, finds the sum of squares for lack of fit and the sum of squares for pure error. These are added to the standard anova table to give a test for lack of fit. If there is no pure error, then the regular anova table is returned.
1 2 3 4 5 6 7 8 | ### This is a generic function.
pureErrorAnova(mod)
## S3 method for class 'lm'
pureErrorAnova(mod)
### Methods for other than models for type lm have not been defined.
|
mod |
an object of type |
For regression models with one predictor, say y ~ x
, this method fits
y ~ x + factor(x)
and prints the anova table. With more than one predictor, it
computes a random linear combination L of the terms in the mean function
and then gives the anova table for update(mod, ~.+factor(L))
.
Returns an analsis of variance table.
Sanford Weisberg, sandy@stat.umn.edu
Weisberg, S. (2005). Applied Linear Regression, third edition, New York: Wiley, Chapter 5.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.