reg.anova {HoRM} | R Documentation |
Expanded ANOVA Table
Description
Calculate the ANOVA table for an object of class lm
. The results are identical to those obtained from anova
, but an extra line is included that prints the total degrees of freedom and the total sum of squares.
Usage
reg.anova(lm.out)
Arguments
lm.out |
An object of class |
Value
reg.anova
returns exactly the same output as the anova
function applied to an object of class lm
, but includes an extra line that summarizes the total source of variability.
References
Young, D. S. (2017), Handbook of Regression Methods, CRC Press.
See Also
Examples
## Applied to the toy dataset.
data(toy)
lm.out <- lm(y ~ x, data = toy)
anova(lm.out)
reg.anova(lm.out)
[Package HoRM version 0.1.3 Index]